Reputation: 10929
I would like to provide structure to the firebase data tables. Hence, I want to create a schema (similar to mongoose) based on which the entries to the database can be written. How can this be achieved?
Upvotes: 1
Views: 1708
Reputation: 10929
There are two libraries then enable creating schema for firebase:
Bolt is a library developed by firebase itself
Upvotes: 1
Reputation: 598837
To validate the structure of data that can be written to the Firebase Realtime Database, you use the .validate
clause in its server-side security rules. Instead of repeating them here, I'll refer you to its documentation: https://firebase.google.com/docs/database/security/
Upvotes: 0