0

使用以下文档,您将如何逃避where查询?

/posts/abc
   users: [map]
      abc.def: 4
firestore().collection('posts').where('users.abc.def' , '>' , 0)

有没有办法逃脱.

谢谢

4

1 回答 1

0

正如上面评论中提到的@kmoser,解决方案是使用FieldPath

firestore().collection('posts').where(new firestore.FieldPath('users', 'abc.def'), '>' , 0)
于 2020-05-11T18:01:27.710 回答