findOne method
GET /{version}/database/collections/{collectionName}/{id}
Implementation
Future<Object?> findOne(
{required Object collectionName,
required Object id,
Map<String, Object?>? query,
Map<String, String>? headers}) {
return transport.send(
route: '/{version}/database/collections/{collectionName}/{id}',
method: 'GET',
query: query,
headers: headers,
pathParams: <String, Object?>{'collectionName': collectionName, 'id': id},
);
}