querying on a pointer
I have a database with a pointer to a user object. I want to query that table based on the user id. Can you provide a sample of what the query would look like
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
I have a database with a pointer to a user object. I want to query that table based on the user id. Can you provide a sample of what the query would look like
Check the following http://docs.appery.io/documentation/b...
i did...they are not clear to me. can you provide an example? please?
Hi Jeremy,
Example:
We have User with id === "51dba907e4b0cb6cf9c0ba24",
We have collection with column "owner" with type Pointer to Users (pointer<users>)
So if we want retrieve all items with owner "51dba907e4b0cb6cf9c0ba24" we must use this query:
precode{
"owner": {
"$inQuery" : {
"_id": "51dba907e4b0cb6cf9c0ba24"
}
}
}/code/pre
$inQuery is well described here.
Hi Jeremy/Alena,
The links above seem to be re-redirected, could you please share more information or current links.
Thanks
Dongzhi