Queries returning scalars aren't generated properly
Closed this issue · 0 comments
xfthhxk commented
I'm using Lacinia on the server and testing through GraphiQL. I'm not able to generate queries which return scalars.
The following input in GraphiQL appears to be valid:
{getDate}
and returns:
{
"data": {
"getDate": "2017-07-13T05:28:11.436Z"
}
}
As is:
{sayHello(name: "Tom")}
which returns:
{
"data": {
"sayHello": "Hello, Tom"
}
}
I don't see a way to generate queries without specifying the fields to return.
Tried the following:
(venia/graphql-query {:venia/queries [[:getDate]]})
Which throws
Unhandled clojure.lang.ExceptionInfo
Invalid query data
#:venia{:ex-type :venia/spec-validation, :ex-explain nil}