newCollection method
- {String dbID,
- String name,
- String schema}
Create a new collection in the DB
Implementation
Future<void> newCollection({String dbID, String name, String schema}) async {
final request = NewCollectionRequest();
request.dbID = base64.decode(dbID);
final collection = Collection(name, schema);
request.config = collection.getConfig();
await _stub.newCollection(request);
return;
}