March 2018
Intermediate to advanced
304 pages
6h 59m
English
Now that we feel comfortable with def middleware, we’re in a good place to address an important question: how do fields without specific resolvers actually resolve anything? Throughout the entire book so far, we’ve had stuff in our schema like this:
| | object :menu_item do |
| | field :name, :string |
| | # ... other fields |
| | end |
Despite the fact that the :name field has no obvious resolver, we nonetheless can include it in a GraphQL query and we get a result. What we need to do is look at what actually happens here because what you’ll find is not only a feature you can use yourself, but more importantly, a tool you can customize as necessary when the default behavior doesn’t suit the data you are working with.
As you might ...
Read now
Unlock full access