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
@JohannesHoppe Just tested and it seems that shorthand syntax works and the document-finder find the document correctly.
The issue here is the fact that your Query does not have a name now.
In the past, we had a names generator for anonymous GraphQL documents, I guess that I need to add it now as well.
JohannesHoppe
added a commit
to angular-schule/website-articles
that referenced
this issue
Jun 14, 2018
I'm using the
graphql-codegen-typescript-template
.Having this
works fine. I get a namespace
BookList
with all required types.But using the shorthand syntax without operation name (see here) breaks the code.
results in:
(two empty spaces and absolutely nothing else)
Proposal:
Queries without a name are going to be ignored.
The text was updated successfully, but these errors were encountered: