We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f4a650 commit 19b3eb1Copy full SHA for 19b3eb1
lib/src/network/parse_query.dart
@@ -5,6 +5,17 @@ class QueryBuilder<T extends ParseObject> {
5
/// Class to create complex queries
6
QueryBuilder(this.object) : super();
7
8
+ QueryBuilder.or(this.object, List<QueryBuilder<T>> list) {
9
+ String query = '"\$or":[';
10
+ for (int i = 0; i < list.length; ++i) {
11
+ if (i > 0) query += ',';
12
+ query += '{' + list[i].buildQueries(list[i].queries) + '}';
13
+ }
14
+ query += ']';
15
+ print(query);
16
+ queries.add(MapEntry<String, dynamic>(_NO_OPERATOR_NEEDED, query));
17
18
+
19
static const String _NO_OPERATOR_NEEDED = 'NO_OP';
20
static const String _SINGLE_QUERY = 'SINGLE_QUERY';
21
0 commit comments