Standardise signatures of the CRUD actions
-
find(type, options)
: getCollections()
=> find('collection')
-
create(type, data)
: createCollection(data)
=> create('collection', data)
-
get(type, id, options)
: get('collection', id)
and get('fragment', id)
-
update(type, id, data)
: updateCollection(collection)
and updateFragment(collection, data)
=> update('collection', id, data)
and update('fragment', id, data)
-
remove(type, id)
: deleteCollection(collection)
and deleteFragment(collection, fragment)
=> remove('collection', id)
and remove('fragment', id)