query<T extends ParseObject> method

Future<ParseResponse> query<T extends ParseObject>(
  1. String query, {
  2. ProgressCallback? progressCallback,
})

Can be used to create custom queries

Implementation

Future<ParseResponse> query<T extends ParseObject>(String query,
    {ProgressCallback? progressCallback}) async {
  try {
    final Uri url = getSanitisedUri(_client, _path, query: query);
    final ParseNetworkResponse result = await _client.get(
      url.toString(),
      onReceiveProgress: progressCallback,
    );
    return handleResponse<T>(
        this, result, ParseApiRQ.query, _debug, parseClassName);
  } on Exception catch (e) {
    return handleException(e, ParseApiRQ.query, _debug, parseClassName);
  }
}