find method
GET /{version}/database/collections/{collectionName}
expandReferences — set true to get every reference value as
{ id, display } (see ExpandedReference); left unset, the stored ids
come back as before. Needs read permission on every source the schema
links to, else the read is refused with CM-ERRORS-DATABASE-056.
Implementation
Future<Object?> find(
{required Object collectionName,
Map<String, Object?>? query,
bool? expandReferences,
Map<String, String>? headers}) {
return transport.send(
route: '/{version}/database/collections/{collectionName}',
method: 'GET',
query: withExpandReferences(query, expandReferences),
headers: headers,
pathParams: <String, Object?>{'collectionName': collectionName},
);
}