🐷

geoflutterfire_plus の初見殺し

2024/05/09に公開

まじで便利な geoflutterfire_plus ですが
初見で結構躓いたので備忘録として残しておきます。

まず、一番のポイントとしては
フィールド状況ですね

結論これ
この geo ってのがまさかのMapだったw

これはマジでまさかすぎたwww

はい、そして2個目としては
orderBy が使えないって事ですね。

Limitation: currently limit and orderBy queries are not supported because of the geo hash query algorithm and Cloud Firestore query limitations. Alternatively documents can be sorted on client side after getting the data (documents).

ReadMe をみると cloud firestore の問題で
使えないって事らしいんですが
4月にアップデートされて使えるようになったので問題ないはずです・・・

はいこれ詳細
https://firebase.google.com/docs/firestore/query-data/multiple-range-fields

一応、issues にも載っけておいたので気長に待ちながらも、
自分のアプリに導入したいのでささっと入れておきました

あぁ、怖すぎ。笑
早く対応してくれー!笑

Discussion