Skip to main content
Version: Codegen-V1.0.0

Database Indices (.indexOn)

One to Many Relations require Indices to be placed in Firebase DB rules. Instead of writing the indecies yourself, We have created a helper function that returns the JSON string that should be added to the Firebase DB rules

After You initiallize the Frost App call the getIndices static function From the Frost class.

const firebaseConfig = {
...
};

export const FrostApp = Frost.initialize(firebaseConfig)

const indices = Frost.getIndices()
//do anything you want with the string
console.log(indices)