当在 react-native-firebase 中获取该集合时,从具有引用数组类型字段的文档的 firestore 集合给出null 数组。在adminSDK和firestore npm package中,数据完美呈现。任何人都可以告诉它背后的原因是什么。具有类型引用字段的文档也将出现在 react-native-firebase
预期响应
active: true,
instruments: [
firestore.googleapis.com/project/xxxx-xxxxx/database/(default)/documents/Companies/demo/instrumentGroup/bznCmbtSzdVFdPrbAexv,
firestore.googleapis.com/project/xxxx-xxxxx/database/(default)/documents/Companies/demo/instrumentGroup/xKMvoovwWKPc5xxjsc1K,
firestore.googleapis.com/project/xxxx-xxxxx/database/(default)/documents/Companies/demo/instrumentGroup/FsLiNcJIyn78JTOcna4H
],
name:"Chamfer",
type:"Range",
unit:"mm"
实际反应
active: true,
instruments: [
null,
null,
null
],
name:"Chamfer",
type:"Range",
unit:"mm"