File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -31,5 +31,5 @@ Future<void> main() async {
31
31
},
32
32
}).execute ();
33
33
34
- print (res.result );
34
+ print ('${ res .statusCode }, ${ res . data }' );
35
35
}
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ class ParseAggregate {
59
59
///
60
60
/// Returns a [ParseResponse] containing the results of the aggregation.
61
61
/// Throws [ArgumentError] if the pipeline is empty.
62
- Future <ParseResponse > execute () async {
62
+ Future <ParseNetworkResponse > execute () async {
63
63
Map <String , String > _pipeline = {};
64
64
65
65
if (pipeline.isEmpty) {
@@ -73,20 +73,14 @@ class ParseAggregate {
73
73
});
74
74
}
75
75
76
- final debugBool = isDebugEnabled (objectLevelDebug: debug);
76
+ // final debugBool = isDebugEnabled(objectLevelDebug: debug);
77
77
final result = await ParseObject (className)._client.get (
78
78
Uri .parse ('${ParseCoreData ().serverUrl }$keyEndPointAggregate $className ' ).replace (
79
79
queryParameters: {'pipeline' : jsonEncode (pipeline.entries.map ((e) => {e.key: e.value}).toList ())}
80
80
).toString (),
81
81
);
82
82
83
83
84
- return handleResponse <ParseObject >(
85
- ParseObject (className),
86
- result,
87
- ParseApiRQ .get ,
88
- debugBool,
89
- parseClassName ?? 'ParseBase' ,
90
- );
84
+ return result;
91
85
}
92
86
}
You can’t perform that action at this time.
0 commit comments