How to use "Pointer" column in database in server code?
Hi Team,
Could you let me know how to make query, update or create with "Pointer" columns in the database?
e.g.
I have a collection called Invoice in which there is a column named 'customer', which is a pointer to the Users collection.
How should I write the 'criteria' for database activities:?
query all invoices that belong to a certain user?
create an invoice for a user
modify the user of an invoice
delete all invoice for a user
I have checked the manual of MongDB, and i can't seem to find anything about 'Pointer', is it something Appery.io invented?
In my case what would be the key benefit of using Pointer compared to just using a 'String' field that stores the userId?
Thanks
Dongzhi