
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
- create subdomain for function
I have deployed my react project on Appwrite using Sites feature. I have added custom DNS on namecheap. I want to create new sub domains for my functions on Ap...
- I am facing this error: type 'Null' is ...
When attempting to fetch areas from the area collection, the application throws an error: "type 'Null' is not a subtype of type 'int.'" This issue originates in...
- Domain Verification failed
I think i did the step by step well but just not work. When I enter the page I have this error: `Requested host does not match any Subject Alternative Names (S...
