You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to inject additional query, I am not getting any results. When removing queryBuilder, I am getting all results.
Code:
var res =
await GeoCollectionReference<Map<String, dynamic>>(collectionReference)
.subscribeWithin(
center: center,
radiusInKm: radiusInKm,
field: field,
geopointFrom: geopointFrom,
queryBuilder: (query) => query.where('archived', isEqualTo: false),
)
.first;
final obj =
res.map((docSnapshot) => Post.fromDocumentSnapshot(docSnapshot)).toList();
return obj;
nor with fetchWithin
var res =
await GeoCollectionReference<Map<String, dynamic>>(collectionReference)
.fetchWithin(
center: center,
radiusInKm: radiusInKm,
field: field,
geopointFrom: geopointFrom,
queryBuilder: (query) => query.where('archived', isEqualTo: false),
);
i've tested it further because i thought it is something with my query, but passing null to query doesn't also work(I saw an example proj where null should get all values as well).
var res =
await GeoCollectionReference<Map<String, dynamic>>(collectionReference)
.fetchWithin(
center: center,
radiusInKm: radiusInKm,
field: field,
geopointFrom: geopointFrom,
queryBuilder: (query) => null,
);
The text was updated successfully, but these errors were encountered:
geoflutterfire_plus: ^0.0.21
When trying to inject additional query, I am not getting any results. When removing queryBuilder, I am getting all results.
Code:
nor with fetchWithin
i've tested it further because i thought it is something with my query, but passing null to query doesn't also work(I saw an example proj where null should get all values as well).
The text was updated successfully, but these errors were encountered: