Skip to content Skip to sidebar Skip to footer

Firebase - 'pushwithpriority' - And Validation

I really want to 'push with priority'. But this doesn't exist, so I am planning on doing a push with out parameters, then a setWithPriority with the returned reference. Similar to

Solution 1:

Push simply creates a unique id and returns a reference to it. It is a pure client-side operation, so no server-side validations (e.g. Firebase's security rules) are triggered.


Post a Comment for "Firebase - 'pushwithpriority' - And Validation"