Does Firebase support batch operations in REST API?
1 answer
The simplest "batch" operation in Firebase would be to go up one level in the tree and issue a PATCH or DELETE command.
Consider the following data structure:
/foo/bar /foo/baz /foo/bap /foo/bam
If I want to remove bar
and baz
, I could do the following:
curl -X PATCH https://<instance>.firebaseio.com/<PATH>.json -d '{"bar": null, "baz": null}'
+5
source to share