queryRequiredSingleJSON abstract method

Future<String> queryRequiredSingleJSON(
  1. String query, [
  2. dynamic args
])

Executes a query, returning the result as a JSON encoded String.

The query must return exactly one element. If the query returns more than one element, a ResultCardinalityMismatchError error is thrown. If the query returns an empty set, a NoDataError error is thrown.

For details on args see the edgedb library docs page.

Implementation

Future<String> queryRequiredSingleJSON(String query, [dynamic args]);