Add a schema to TerminusDB and TerminusCMS using the TerminusDB JavaScript Client
After you have imported the terminusdb_client
, and created a client, and connected to a database you can create a schema.
You can create a JSON schema, in this example we'll create a schema with one object called Player with two properties name
and position
with the name forming the lexical key:
Add the schema object with: