Creating Our Schema
In our schema, we'll have one collection,
wallet, with three predicates:
wallet/user- a reference to a
_user(a built-in ledger collection)
Do you remember how to create a schema?
Remember, you need to specify a
type. The most basic and common types are
ref(references). For a
reftype, it is good practice to specify a
restrictCollection, so the
refcan only refer to a subject in a specific collection.
Some predicates may also need to be
Create the Schema
Create the collection (wallet) and three predicates mentioned above.