DB Query
GET collection
Example of getting the whole posts collection
Example of getting a single collection by _id
_id | String
Example of getting a single collection by key and value
key | String value | String
ADD collection
Example of adding a new post collection
$request_data | Array
UPDATE collection
Example of updating a collection.
This usually use with $router->put() method
$request_data | Array
Note - $request_data must include _id
field
DELETE collection
Example of deleting a collection
$id | String
Last updated
Was this helpful?