Does Firebase support batch operations in REST API?
I need a batch DELETE , POST when using Firebase.
Does it support batch operations in REST API?
+3
atomd
source
to share
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
Kato
source
to share