createView method

Future<Map<String, dynamic>> createView(
  1. String view,
  2. String source,
  3. List pipeline, {
  4. CreateViewOptions? createViewOptions,
  5. Map<String, Object>? rawOptions,
})

This method creates a view

Implementation

Future<Map<String, dynamic>> createView(
    String view, String source, List pipeline,
    {CreateViewOptions? createViewOptions,
    Map<String, Object>? rawOptions}) async {
  var command = CreateViewCommand(this, view, source, pipeline,
      createViewOptions: createViewOptions, rawOptions: rawOptions);
  return command.execute();
}