listQueries method

Future<ListQueriesOutput> listQueries({
  1. required String graphIdentifier,
  2. required int maxResults,
  3. QueryStateInput? state,
})

Lists active openCypher queries.

May throw AccessDeniedException. May throw InternalServerException. May throw ThrottlingException. May throw ValidationException.

Parameter graphIdentifier : The unique identifier of the Neptune Analytics graph.

Parameter maxResults : The maximum number of results to be fetched by the API.

Parameter state : Filtered list of queries based on state.

Implementation

Future<ListQueriesOutput> listQueries({
  required String graphIdentifier,
  required int maxResults,
  QueryStateInput? state,
}) async {
  final headers = <String, String>{
    'graphIdentifier': graphIdentifier.toString(),
  };
  final $query = <String, List<String>>{
    'maxResults': [maxResults.toString()],
    if (state != null) 'state': [state.value],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/queries',
    queryParams: $query,
    headers: headers,
    exceptionFnMap: _exceptionFns,
  );
  return ListQueriesOutput.fromJson(response);
}