【发布时间】:2020-05-01 21:58:44
【问题描述】:
是否可以使用 graphql 在 Flutter 中查询 Firestore firebase 的结果。 我必须缩小一些结果的范围,并将它们带到前端。 请帮我解决这个问题。 提前致谢
【问题讨论】:
标签: firebase flutter google-cloud-firestore graphql google-cloud-functions
是否可以使用 graphql 在 Flutter 中查询 Firestore firebase 的结果。 我必须缩小一些结果的范围,并将它们带到前端。 请帮我解决这个问题。 提前致谢
【问题讨论】:
标签: firebase flutter google-cloud-firestore graphql google-cloud-functions
是的,您可以将 GraphQL 与 Firestore 一起使用,实际上 this other thread 对此进行了更深入的探索。
总结这些信息,您首先需要将 Firestore 中的结果(例如通过 .get 方法获得的结果)转换为数组,以便将它们传递给 GraphQL。
网上也有一些这样的例子,比如this git repository。您可以使用这些作为指南来设置您自己的实现。
希望你觉得这很有用。
【讨论】: