Firebase是否支持REST API中的批处理操作?

ato*_*omd 3 rest firebase

使用Firebase时,我需要批处理DELETE,POST操作.
它是否支持REST API中的批处理操作

Kat*_*ato 5

Firebase中最简单的"批处理"操作是在树中向上移动一个级别,并执行PATCH或DELETE操作.

考虑以下数据结构:

/foo/bar
/foo/baz
/foo/bap
/foo/bam
Run Code Online (Sandbox Code Playgroud)

如果我想删除barbaz,我可以做到以下几点:

curl -X PATCH https://<instance>.firebaseio.com/<PATH>.json -d '{"bar": null, "baz": null}'
Run Code Online (Sandbox Code Playgroud)