byExample method

Future<ArangoCursor> byExample(
  1. Map<String, dynamic> example,
  2. [Map<String, dynamic> opts]
)

Implementation

Future<ArangoCursor> byExample(
  Map<String, dynamic> example, [
  Map<String, dynamic> opts,
]) async {
  opts ??= {};
  final resp = await _connection.request(
    method: 'PUT',
    path: '/_api/simple/by-example',
    body: {...opts, 'example': example, 'collection': name},
  );
  return ArangoCursor(_connection, resp.arangoDartHostId, false, resp.body);
}