Sen*_*lez 3 node.js google-cloud-firestore
我有一个包含嵌套集合的文档。我一直在尝试使用the firebase/firestore此处记录的库获取该嵌套集合:https : //firebase.google.com/docs/reference/js/firebase.firestore
let route = await firebase.firestore()
.collection('route')
.doc('0bayKbCiAchc0Vy9XuxT')
.collection('qa')
.get()
Run Code Online (Sandbox Code Playgroud)
我刚回来 PayloadTooLargeError: request entity too large
有任何想法吗?这个库不支持吗?
Sen*_*lez 12
这与我route之后的访问方式有关。
只是稍微改变了一下:
let snapshot = await firebase.firestore()
.collection('route')
.doc('0bayKbCiAchc0Vy9XuxT')
.collection('qa')
.get()
snapshot.forEach(doc =>{
console.log('hello', doc.data())
})
Run Code Online (Sandbox Code Playgroud)