You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The real problem here is described in #123. Specifically, you have inconsistent directives on UserInsertInput in each operation -- all of the operations ultimately refer to UserInsertInput but only InsertUserOne has the directive. Unfortunately at the moment the behavior is we use whichever set of directives we see first, which when you combine it with globbing is potentially nondeterministic (it depends on the order that we get the files from the file system). Anyway, the fix is to put that directive on all your queries that might refer to UserInsertInput; fixing #123 would give you validation to tell you that explicitly.
(With that said, you're right that as described in #167 your ** isn't doing anything! But that doesn't matter since you just have one level of nested directories anyway, so the equivalent operations/*/*.graphql will do fine.)
Describe the bug
On a big schema from Hasura, directives are sometimes added, but disappear if genqlient is run again.
To Reproduce
See https://github.com/kantum/genqlient-bug
Expected behavior
Running genqlient twice should give the same result.
Directives should be applied.
genqlient version
v0.5.0
The text was updated successfully, but these errors were encountered: