how will i make relationship between collections in appwrite cloud?
Have a read through this: https://appwrite.io/docs/databases-relationships
according to this , i need Relationship
but there is no attribute named relationship in appwrite cloud
I am creating educational app , in that i am creating Quiz , i want to give may to many field questions in quiz , so that its easier to get and update questions in any quiz .
How will i achieve this ?
Oh I didn't notice you wanted it in cloud. Relationships were introduced in 1.3.x and Cloud is on 1.1.2 so the Relationships feature isn't available on it. That being said, you could manually setup relationships by creating an attribute that keeps track of the related document's ID.
like i will store quiz id in every question ? and fetch according to that?
depends on what you want to do, but yes
i am currently migrating from appwrite self hosting to cloud
in my self hosting i was using relationship and it works absolutely fine
that's probably because your self-hosted version is on 1.3.x
yes 1.3
so for now , what should i do?
well as I said, if you want to create relationships on cloud, you'll have to manually reference document IDs
which will be good option for manual reference document id , storing all question id in an array named questions in every quiz , or storing quiz id in every question , so that i can easily get every question for each quiz easily?
i guess storing the ids of all questions in an array will be better.
and we will paas this array in query in questions to gvet all the data
yep
is it good idea , because in my every quiz almost 200 question will be there , so passing a query with 200 elements araay is good idea or not?
sure why not?
[CLOSED] Relationships in Appwrite Cloud
Recommended threads
- _APP_OPTIONS_ROUTER_PROTECTION
Hi Everyone, I just setup a fresh 1.9.0 on a server. Configured everything and now when i try to connect to appwrite for first time setup i get a _APP_OPTIONS_R...
- API key without database.read/write
I had some issues with my previous API key and I deleted it then I wanted to create a new one and discovered the database checkbook has no database.read/write j...
- dynamic key missing scopes for database ...
Here are the scopes listed, I get permission errors for reading row and document. Appears to be missing since last time i checked. Database 6 Scopes policies....