On Pointer Value

Queries on pointer values.

You can run queries on pointer values.

Examples

To properly get an object with a specific pointer value, you should provide an object with exactly the same fields in the where parameter:

curl -X POST \
  -H "X-Appery-Database-Id: 544a5cdfe4b03d005b6233b9" \
  -H "Content-Type: application/json" \
  -d '{"where":{"subtask": {"collName":"todo", "_id":"5458efdfe4b0c9bce12bd58a"}}}' \
  https://api.appery.io/rest/1/db/collections/todo/query

🚧

Parameters Order

For this query to work properly, it's import to keep the parameter order as shown in the example. For example { "_id":"57b6bd3be4b07e8542fd8ae8", "collName":"Categories"} will not work.

An alternative way to setup the query is like this:
curl -X POST \
  -H "X-Appery-Database-Id: 544a5cdfe4b03d005b6233b9" \
  -H "Content-Type: application/json" \
  -d '{"where":{"subtask._id":"5458efdfe4b0c9bce12bd58a"}}' \
  https://api.appery.io/rest/1/db/collections/todo/query