reym
The Freym Journey

5 // CRUD

Event sourcing is nice and powerful. However, some use cases just require simple operations like create, read, update, and delete (CRUD) data. We created the CRUD service to provide an easy way to interact with your data.

By defining a simple GraphQL-like schema, you can define what your data should look like. The CRUD service will then generate the APIs for you to perform CRUD operations on your data.

Did you know?

The CRUD service is based on the Projections and Streams service. The CRUD service uses the Projections service to read the data and the Streams service to make changes.

Example

Let's say you have a simple CRUD schema that defines a user with a name and an email.

type User @crudType {
    name: String!
    email: String!
}

The details of the schema structure and features are described in the CRUD Schema Definition documentation.

That is everything you need. CRUD will generate the APIs for you to perform CRUD operations on your user data.

Further Reading Beyond The Freym Journey

Eager to learn more about CRUD or Streams right now? Read the following articles to dive deeper into the topics.

You'll leave The Freym Journey for now if you decide to take a deep dive. Of course, you can always come back to continue your journey.