gpt4 book ai didi

Firebase 并选择不同的

转载 作者:行者123 更新时间:2023-12-05 00:41:18 26 4
gpt4 key购买 nike

我在 firebase 中的数据看起来像

enter image description here

我可以使用 firebase 的 REST API 在 Genre 节点上进行选择吗?

最佳答案

当您在 Firebase 中读取一棵树时,您会得到所有的 child 。没有办法解决这个问题。

但是,您可以创建一个仅包含每部电影的类型的数据结构。

{
"movieGenres": {
"3646": {
"0": "Comedy"
},
"3647": {
"0": "Drama"
},
"3648": {
"0": "Horror",
"1": "Sci-Fi"
}
}
}

现在获取流派很简单。

关于Firebase 并选择不同的,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35170616/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com