Back

how to store array of objects as an attribute

  • 0
  • Databases
  • Web
raghu
23 Sep, 2024, 18:06

department: [ { branch: "branchName", speciality: ["specialityName", "specialityName2"], }, ], storing this as an attribute

TL;DR
Developers want to store an array of objects as an attribute. They have a 'department' attribute with objects containing 'branch' and 'speciality' arrays. To store it as an attribute, wrap the department array within an object and save it.
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