Skip to content
Back

How i can create an attribute for a array of objects

  • 0
  • Databases
ianmont
8 Apr, 2023, 21:00

I would like to create an attribute of type array but where I can save an array of objects example:

[ { id: 1, type: 'vulnerability', title: 'Vunerability 1', description: 'Descripcion de la vulnerabilidad 1', severity: 'high', status: 'open', date: '2023-04-08', url: 'https://www.google.com' }, { id: 2, type: 'vulnerability', title: 'Vunerability 2', description: 'Descripcion de la vulnerabilidad 2', severity: 'medium', status: 'open', date: '2023-04-08', url: 'https://www.google.com' } ]

Is this possible?

TL;DR
The user wants to create an attribute for an array of objects. The solution suggested is to use relationships, which will be included in the next release. There is a link provided to track the progress.
Drake
8 Apr, 2023, 22:30

What you're describing is relationships. This should be coming in our next release. You can follow along here: https://github.com/appwrite/appwrite/issues/2735

ianmont
9 Apr, 2023, 00:13

Oh i see, thanks I hope it comes out soon

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