Back

Database collections issue

  • 0
  • Web
Raj_18
7 Jun, 2023, 10:18

http://157.230.98.159/docs/rules is this way of creating collection still valid?

TL;DR
Summary: The user is seeking help with creating nested documents in their MVC backend, specifically in relation to database collections. They express confusion over the removal of nested documents and inquire about alternative methods. Another user suggests using the 'relationship' feature in the Appwrite documentation, and provides a link for reference. The user also mentions the use of JSON.stringify and requests an example. There is no clear solution provided in this support thread.
rajdama18
7 Jun, 2023, 10:41

Anyone please help I want to create nested documents how can I do it

Bouahaza
7 Jun, 2023, 10:49

Use JSON.stringify

rajdama18
7 Jun, 2023, 10:57

Can u give me some example

Bouahaza
7 Jun, 2023, 11:01

nested = relationship ? (if yes go : https://appwrite.io/docs/databases-relationships) Or nested = have attribute with JSON on it (if yes, use JSON.stringify on save)

rajdama18
7 Jun, 2023, 11:08
rajdama18
7 Jun, 2023, 11:08

Can't we use this method now?

Bouahaza
7 Jun, 2023, 11:10

rule isn't deploy on appwrite, for 1.4 I thinks

rajdama18
7 Jun, 2023, 11:14

Do u know for which version it is Implemented?

rajdama18
7 Jun, 2023, 11:16

Being mongo user this way suits me best

Bouahaza
7 Jun, 2023, 11:17

Or it's old doc ? Don't remember

Bouahaza
7 Jun, 2023, 11:18

Yeah, thinks you read old doc

Bouahaza
7 Jun, 2023, 11:18
Bouahaza
7 Jun, 2023, 11:18

It's changelog for 0.12.0, so rules deleted long time ago

rajdama18
7 Jun, 2023, 11:21

Ok thnx for ur help 👍

rajdama18
7 Jun, 2023, 11:22

I wonder why such Important part was removed nested documents are widely been used in databases

Bouahaza
7 Jun, 2023, 11:26
rajdama18
7 Jun, 2023, 11:30

Actually I am using mvc architecture in backend so for model since we can't create nested documents, what alternative code should I write that best represents relationship among collections

Bouahaza
7 Jun, 2023, 11:30

.

Drake
7 Jun, 2023, 23:39

How did you find this?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more