-
-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Input and Enum not being generated #141
Comments
Hi @jyjyj Do you have two mutations with the same name and arguments? Maybe in different schema files? Could you please do the following:
Thanks! |
Hi @kobylynskyi, I'm not sure if they were related to the same issue, as previously (just an hour ago), I didn't have any issues. I do not have any queries or resolvers with identical names. The result of your steps for console output are shown below. Additionally, as I mentioned above, I am also expecting the name If I try to rebuild, I get instead Thanks!
|
My sincere apologies, I did indeed have a repeated name. I'll change the name and wait for issue #106. Sorry and thanks! |
Issue Description
The input and enum types in my graphql schemas are not being generated (1.7.0, 1.7.1, 1.7.2). This only suddenly happened, was previously working without problems for a few days.
Steps to Reproduce
Put any enum / input in the schemas, they are not generated and anything else dependent on those will cause the build to fail (unable to create file)
Expected Result
Enums and inputs should be working, as before
Others
I'm also seeing either of this (one or the other) when I gradle build, not sure if it's related:
Caused by: java.nio.file.FileSystemException: D:\Documents\graphql-java\build\generated\MyMutation.java: The process cannot access the file because it is being used by another process at com.kobylynskyi.graphql.codegen.utils.Utils.deleteDir(Utils.java:107)
File already exists: D:\Documents\graphql-java\build\generated\aris\graphql\api\MyOtherMutation.java at com.kobylynskyi.graphql.codegen.GraphQLCodegenFileCreator.generateFile(GraphQLCodegenFileCreator.java:28) ... 99 more
In particular, the name of
MyOtherMutation.java
is actuallyAssignUsersToTaskByTaskIdAndUserIdAndWorkerIdListMutation.java
, when the defined resolver is actually onlyassignUsersToTask
, and the following variablestaskId
,userId
,workerIdList
, are inputs of the resolver, not part of its actual name. Not sure if it's related to #138 asworkerIdList
is a string array input.The text was updated successfully, but these errors were encountered: