create method

Future<bool> create(
  1. String index
)

Creates a new data index in Kuzzle.

Implementation

Future<bool> create(String index) async {
  final response = await kuzzle.query(KuzzleRequest(
    action: 'create',
    controller: name,
    index: index,
  ));

  return response.status == 200;
}