...

/

Adding Fields in GraphQL Schema

Adding Fields in GraphQL Schema

Learn adding fields in GraphQL schema.

We'll cover the following...

Adding fields

We can add fields to an object type using the field macro. The macro takes an identifier atom, a type reference, an optional keyword list of attributes, and another optional block for more in-depth configuration We’ll start with the basics and add :id, :name, and ...