
7/2/2021
What this post added
This post details the creation of a GraphQL object (`food`) based on an existing Ruby on Rails model, the creation of a root field (`all_food`) to query all food items, and the implementation of a query to retrieve specific fields (`image`, `place_of_origin`). It also explains how to add a nested field (`nutrition`) to an existing object and how to write a query with an argument (`food` by `id`). The post also includes a 'Try it Yourself' section for implementing a `nutrition` root field and a `find_food` root field based on `place_of_origin`.