platform
data schema

Data Schema

Last updated 3 weeks ago
#platform
#data-schema

Every project has its own data schema. You can organize your data in models and define relations between them.

?

For example, if you are running a blog, you need to organize Users and Posts. A user should be able to be associated with all the posts that he writes. However, a post should only be associated with its single author. You can transfer this situation by using the User and Post models and define a relation between them.

?

Models

Models define the structure for a certain type of your data and consist of different fields.

?

Fields

Fields are used to define a model and can have several properties like a type and a default value.

?

Relations

Relations can be used to define the relationship between two models.

?

System Artifacts

In your Graphcool projects you will encounter certain models and fields that are automatically created. They are referred to as system artifacts and cannot be removed from your project.

?