Test Schema is broken in example
sircharleswatson opened this issue · 1 comments
sircharleswatson commented
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
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