Back

[SOLVED] DX for database collections

  • 0
  • Databases
  • Self Hosted
sprouts
13 Apr, 2023, 20:21

Got some questions that involve the developer experience with collections. Does Appwrite have support for Object relation mapping (ORM) or are there examples that help you work with your database more easily by automating the process of translating data between your code and the database. Or Is there a way to make type-safe queries to catch errors early on, making it easier to write and maintain code, and ensuring that your queries are accurate and have the right data types for each field.

TL;DR
Solution: The user had questions about developer experience with collections in Appwrite. They asked if there was support for Object Relation Mapping (ORM) or any examples that could help automate the process of translating data between code and the database. Additionally, they inquired about making type-safe queries in order to catch errors early and ensure query accuracy. The response was that there is no custom type checking for queries currently, but the user can create their own types. The user was directed to a resource for creating types. Additionally, the user was encouraged to give a thumbs-up to a GitHub issue about adding custom type checking for queries. In summary, App
Drake
13 Apr, 2023, 20:34

You would need to create the types yourself.

There isn't any custom type checking for queries yet. Feel free to 👍 https://github.com/appwrite/sdk-generator/issues/581

sprouts
13 Apr, 2023, 20:38

Done

Drake
13 Apr, 2023, 20:40

oh and for creating types, I usually use this as a starting point: https://app.quicktype.io/

joeyouss
24 Apr, 2023, 08:09

[SOLVED] DX for database collections

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