Closed sircharleswatson closed 8 years ago
In step 1 of the usage example, the Test Schema is lacking the args property in order for the name to work with the first greeting function.
args
it should be
def schema do %GraphQL.Schema{ query: %GraphQL.Type.ObjectType{ name: "Hello", fields: %{ greeting: %{ type: %GraphQL.Type.String{}, args: %{ name: %{ type: %GraphQL.Type.String{} } }, resolve: {TestSchema, :greeting} } } } } end
Closed by #20
In step 1 of the usage example, the Test Schema is lacking the
args
property in order for the name to work with the first greeting function.it should be