Fork me on GitHub
#graphql
<
2023-05-26
>
tomc22:05:53

Hi all, I've got a working graphql schema I'm trying to run an introspection query against and it's failing because queryType is null. Any tips for how to debug this would be appreciated.

(lacinia/execute schema "{ __schema { queryType { name }}}" nil nil)
;; => 
{:data {:__schema nil},
 :errors
 ({:message "Non-nullable field was null.",
   :locations [{:line 1, :column 14}],
   :path [:__schema :queryType]})}
Note that this schema is parsed from a graphql schema definition language file, but I tested a smaller demo schema parsed from SDL and I was able to introspect without issues.