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
- CORS errors in Obsidian custom plugin
Hi, anyone here familiar with obsidian community plugins? In short: it's a local first note app which supports writing your own add-ons / plugin But I keep get...
- > AppwriteException: The requested servi...
When trying to read or write from my database I get the following error: > AppwriteException: The requested service is disabled. You can enable the service from...
- Courtesy limit reset for non-profit migr...
Hi Team! I'm the architect for a 501(c)(3) non-profit project (Aaria's Blue Elephant) and we just hit our Free plan Database Read limit (currently at 164%). Th...