suku
suku

Reputation: 10929

Schema for Firebase Realtime Database

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

Answers (2)

suku
suku

Reputation: 10929

There are two libraries then enable creating schema for firebase:

  1. Firebase Schema
  2. Bolt

Bolt is a library developed by firebase itself

Upvotes: 1

Frank van Puffelen
Frank van Puffelen

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

Related Questions