Back

[SOLVED] How can I retrieve data of the document on nodejs Server SDK?

  • 0
  • Self Hosted
  • Databases
CrimsonFoot
1 Nov, 2023, 02:22

Models.Document interface doesn't have 'data' property and I couldnt' find any example about it. Should I extends the interface to make my own document model and typecast it to access to the data?

TL;DR
The user wants to know how to retrieve data from a document on a Node.js Server SDK. The solution is to extend the document model and include the attributes for the collection. The Models.Document interface doesn't have a 'data' property, so the user needs to create their own document model and typecast it to access the data.
Drake
1 Nov, 2023, 04:38

yes, extend the document model and include the attributes for your collection

CrimsonFoot
2 Nov, 2023, 10:34

Super! Thank you very much! It helped a lot!

Drake
2 Nov, 2023, 16:56

[SOLVED] How can I retrieve data of the document on nodejs Server SDK?

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