Hi everyone i have a database on appwrite named inventories which have relation with warehouses db like following:
- Two-way relationship
- Realted Collections -> warehouses
- Attribute Key -> warehouse (i name it warehouse)
- Attribute Key -> inventories
- Relation -> Many to Many (not sure if this could be a problem but open to suggestions)
- On deleting a document -> Cascade - delete all related documents
So how my setup is for example if i have "Hoodie" as inventory item i am going to create a row entry for Warehouse 1 and if it is going to Warehouse 2 then i will make another row entry in inventories collection. Open to suggestions on how to achieve an api call like this: const inventories = await databases.listDocuments( PRIVATE_APP_WRITE_DATABASE_ID, PRIVATE_APP_WRITE_INVENTORIES_COLLECTION_ID, [Query.contains('warehouse', [warehouseId])] ); bcoz when i do this it doesnt work and i want to fetch warehouse details in it.
Tech Stack: I am using Sveltekit 2.0 and warehouseId is passed as param as string.
Recommended threads
- No server error on selfhosted appwrite
Please help me, my clients is ask what happen on their data? How can i make it up again?
- Upgrading selfhost version?
It is okay to upgrade version to higher one, of my current version is 1.7.4 to 1.8.1. Is that safe to do cause my clients already have data on that? Also is a...
- Local Serverless Function Testing: Are D...
I have followed the instructions to get the CLI working, and have been able to log-in, initialize my project, and created a simple Python function, which calls ...