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
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Edit ID of an existing collection
Hi there. Is it possible to edit an ID of an existing collection? Right now it looks impossible from AppWrite cloud at least.