haskell-graphql / graphql-api

Write type-safe GraphQL services in Haskell
BSD 3-Clause "New" or "Revised" License
406 stars 35 forks source link

Fix the input object example #177

Closed harendra-kumar closed 6 years ago

harendra-kumar commented 6 years ago

It generates this output without the change:

{"data":{"description":null},"errors":[{"message":"Could not coerce Name {unName = \"dogStuff\"} to valid value: Key not found: Name {unName = \"_toy\"}"}]}
{"data":{"description":"their favorite toy is a shoe"}}

With the change:

{"data":{"description":"likes treats and their favorite toy is a bone"}}
{"data":{"description":"their favorite toy is a shoe"}}
jml commented 6 years ago

We had both approved this, and there were no outstanding comments, so I merged it.