Check if query is null

This commit is contained in:
Pierre Plagnes 2019-09-02 19:05:20 +02:00
parent 2c15ae9464
commit 7767be1f1a

View file

@ -54,7 +54,7 @@ class MongoService extends Service<String, Map<String, dynamic>> {
} else if (key == 'query' && } else if (key == 'query' &&
(allowQuery == true || !params.containsKey('provider'))) { (allowQuery == true || !params.containsKey('provider'))) {
var query = params[key] as Map; var query = params[key] as Map;
query.forEach((key, v) { query?.forEach((key, v) {
var value = v is Map<String, dynamic> ? _filterNoQuery(v) : v; var value = v is Map<String, dynamic> ? _filterNoQuery(v) : v;
if (!_NO_QUERY.contains(key) && if (!_NO_QUERY.contains(key) &&