any method

Future<Map<String, dynamic>> any()

Fetches a document from the collection at random.

Implementation

Future<Map<String, dynamic>> any() async {
  final resp = await _connection.request(
    method: 'PUT',
    path: '/_api/simple/any',
    body: {'collection': name},
  );
  return resp.body['document'];
}