Check if query is null
This commit is contained in:
parent
2c15ae9464
commit
7767be1f1a
1 changed files with 1 additions and 1 deletions
|
@ -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) &&
|
||||||
|
|
Loading…
Reference in a new issue