schema method

Future<Schema> schema()

Reads schema of this collection, which may be null.

Implementation

Future<Schema> schema() async {
  final schemaResponse = await SchemaReadRequest.forCollection(this)
      .delegateTo(database.adapter)
      .last;
  return schemaResponse.schemasByCollection[collectionId];
}