executeAggregate method

Future<Object?> executeAggregate({
  1. required Object collectionName,
  2. required Object aggregateId,
  3. Map<String, Object?>? query,
  4. Object? body,
  5. Map<String, String>? headers,
})

POST /{version}/database/collections/{collectionName}/aggregates/{aggregateId}/execute

Implementation

Future<Object?> executeAggregate(
    {required Object collectionName,
    required Object aggregateId,
    Map<String, Object?>? query,
    Object? body,
    Map<String, String>? headers}) {
  return transport.send(
    route:
        '/{version}/database/collections/{collectionName}/aggregates/{aggregateId}/execute',
    method: 'POST',
    query: query,
    body: body,
    headers: headers,
    pathParams: <String, Object?>{
      'collectionName': collectionName,
      'aggregateId': aggregateId
    },
  );
}