Search code examples
firebasegoogle-cloud-firestorefirebase-securitycommon-expression-language

Security rules for cloud firestore (CEL)


guys, can any one tell me in security rules for cloud firestore where i can see all methods to validate data using common expression language(CEL) like (hasOnly(),hasAll(),isNumber)

common expression language methods or functions.


Solution

  • You can find a list of all objects, classes and properties in the reference documentation of Firestore security rules.

    There is no isNumber function there though. As far as I know that is only defined for security rules of the Realtime Database (see isNumber), which uses a different language.