Function: nextSchema()
nextSchema<
T>(previous):SchemaVersionBuilder<T>
Defined in: defineSchemaUpdate.ts:262
Start building the next version of a schema. Chain SchemaVersionBuilder.addSchemaUpdate
calls and finish with build(); the new version is the previous one's plus one.
Type Parameters
T
T extends ModelDefs
Parameters
previous
Returns
Example
const schemaV2 = nextSchema(schemaV1).addSchemaUpdate(splitColor).build();