Skip to content
Back

[SOLVED] Object Type in Appwrite

  • 0
  • Databases
  • General
  • Cloud
sswastik02
27 Nov, 2023, 19:15

Is it possible to define a structured attribute with custom fields I am trying to make an array of custom type. For example: Type { name: [name], type: [type] }, and an array of this in some field name XYZ What is the best way to acheive this ? I am thinking of representing it as a string seperated by some character [name]-[type]

TL;DR
User is asking for help with using object types in Appwrite. They don't want to use relationships and are looking for alternative solutions. They also want to know if it's possible to define a structured attribute with custom fields and how to create an array of custom types. They are considering representing the array as a string separated by a specific character. Solution: The user can either use relationships or manually lookup data using the document ID. However, relationships are experimental. More information and documentation can be found at <https://appwrite.io/docs/products/databases/collections>. To create an array of custom types, the user can define a collection of
Drake
27 Nov, 2023, 20:08

I would create a collection of Types

sswastik02
28 Nov, 2023, 17:11

Can you explain this a bit more, or provide some documentation please ?

sswastik02
28 Nov, 2023, 17:57

Sorry, I don't think I understand, are you asking me to use relationship here on Types ?

sswastik02
28 Nov, 2023, 17:59

if yes, relationship is experimental right ? I want to try and avoid it.

Drake
28 Nov, 2023, 18:56

you can either use relationships or manually lookup data using the document id

sswastik02
29 Nov, 2023, 03:44

[SOLVED] Object Type in Appwrite

sswastik02
29 Nov, 2023, 03:44

Understood, Thank you so much.

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