realm / realm-js

Realm is a mobile database: an alternative to SQLite & key-value stores
https://realm.io
Apache License 2.0
5.8k stars 577 forks source link

Type-safe queries #5231

Open kraenhansen opened 1 year ago

kraenhansen commented 1 year ago

Problem

TypeScript users would like to be able to rely on their types when querying the database for objects.

Solution

A former member of the team has been experimenting with this already: https://github.com/tomduncalf/babel-realm-typesafe-plugin

Any feedback on :point_up: or ideas on the ideal API would be highly appreciated.

How important is this improvement for you?

Would be a major improvement

gfrancischini commented 1 year ago

Hello Realm team, any progress update on this exploration?

My company just closed a deal to use realm, atlas and mongodb but the lack of type safety queries is being a major drawback over the system that we have in place today.

Thank you