Resolver Function
Explore how to create resolver functions in GraphQL mutations using Elixir. Understand handling input arguments, persisting data with Ecto changesets, and managing success or error responses for your API clients.
We'll cover the following...
We'll cover the following...
Building the resolver
Let’s build the resolver function. It will grab the :input argument for us, and then call a general-purpose PlateSlate.Menu.create_item/1 unction that will handle persisting the record:
Here’s how we’ve ...