storage: create document to make a new document. To create a storage, just type the name of the new storage in the search field and click to continue.
There is no need to set a data model to structure your data. The JSON format allows a flexible data model.
name just like a supplier.
To add a new field to your cluster just enter a name in the search field and select a type for it. Field types are for example: value, number or object.
_meta with data concerning the document itself. The keys in the _meta object can be used as any other field. We often use the _meta.created and _meta.updated in data lists, or to sort data.
The _meta.guid is a unique identifier for the document. This means that you can change anything in the document, including the name, and you are still able to identify it.
To set a relation between a product and a supplier for example, you add the field
supplier_guid to the product.
get document block, you can retrieve the supplier information anytime you need it.
supplier instead of the
supplier_guid field to update your product document with the name and the guid of the supplier. Choosing an object makes it easy to add other fields in the future, while keeping your document readable.
In the next section Document events we will explain how to use the guid in the supplier object to update the product document automatically if the supplier data changes.
part of the Basic Rual Developer courses