-1

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.

1 Answers1

1

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.

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
  • hii Frank thanks for information. Can you tell me how to implement these properties of data validation like type checking and size – Amrit Sidhu May 20 '23 at 07:48
  • See https://firebase.google.com/docs/rules/data-validation#firestore and https://stackoverflow.com/questions/58032110/firestore-rules-datatype-validation – Frank van Puffelen May 20 '23 at 14:09