js-bao-wss-client / SchemaDiscoveredEvent
Interface: SchemaDiscoveredEvent
Payload of the schema-discovered event (client.on("schema-discovered", ...)). Fired when the client infers a model schema from a synced document's contents — this only happens when no explicit models or schemaToml were provided in the client options. The discovered schema is also available via client.getDocumentSchema(documentId).
Properties
documentId
documentId:
string
modelNames
modelNames:
string[]
schema
schema:
DiscoveredSchema