Comments (12)
DirectiveDefinition are currently not managed.
It's on the TODO list...
from graphql-maven-plugin-project.
I'll make the plugin more tolerant with GraphQL features that it doesn't manage
from graphql-maven-plugin-project.
I can confirm that, with version 1.3.1, the error from the initial post does not occur anymore.
I am not sure though if this means that the feature is fully supported now?
from graphql-maven-plugin-project.
Right. It is not really supported.
I'm working on it.
from graphql-maven-plugin-project.
Thank you for the update!
from graphql-maven-plugin-project.
I released the 1.5.0 yesterday.
Can you confirm that this issue is solved ?
from graphql-maven-plugin-project.
Just tried but ran into a problem: we're using the Neo4j GraphQL Java library (https://github.com/neo4j-graphql/neo4j-graphql-java) on the server side and from that directives to specify relations:
type Person {
name : String
actedIn: [Movie] @relation(name:"ACTED_IN", direction:OUT)
}
This results in an error during code generation:
The directive named 'relation' could not be found
If we add the directive definition...
directive @relation(
name: String
direction: direction
) on FIELD_DEFINITION
enum direction {
IN
OUT
}
...to our schema another problem occurs:
Caused by: java.lang.RuntimeException: Error when trying to execute 'getValue' on 'graphql.language.EnumValue': graphql.language.EnumValue.getValue()
at com.graphql_java_generator.GraphqlUtils.invokeMethod (GraphqlUtils.java:366)
at com.graphql_java_generator.plugin.DocumentParser.readAppliedDirectives (DocumentParser.java:477)
at com.graphql_java_generator.plugin.DocumentParser.readFieldTypeDefinition (DocumentParser.java:719)
at com.graphql_java_generator.plugin.DocumentParser.readField (DocumentParser.java:694)
at com.graphql_java_generator.plugin.DocumentParser.lambda$readObjectType$12 (DocumentParser.java:534)
from graphql-maven-plugin-project.
Hum, hum,
So you're using the client part of this plugin, right ?
Which version ?
Can you provide the GraphQL schema you use, so that we can repeat this error ?
from graphql-maven-plugin-project.
And by the way, please don't pollute existing threads.
Please create your own, as this is a specific issue.
from graphql-maven-plugin-project.
Created a separate issue: #35
from graphql-maven-plugin-project.
Thank you
:)
from graphql-maven-plugin-project.
Support for the directive has been released in the 1.5.0 version
from graphql-maven-plugin-project.
Related Issues (20)
- Reserved field "null" not correctly parsed with the graphql-maven-plugin HOT 2
- Spring 6 - missing createError() method in OAuthTokenExtractor.GetOAuthTokenClientResponse implementing spring reactive ClientResponse HOT 7
- How to exclude DataFetchers/Controllers in 2.x HOT 6
- Documentation site gone? HOT 1
- Exception while generating Pojos HOT 2
- how bind graphQl respone with implement java class HOT 1
- Parse data even if responses contain errors HOT 8
- graphql-maven-plugin unable to create scalar for custom class HOT 4
- "code too large" compilation error HOT 8
- Missing break statements after VALUE_FALSE in deserialize method HOT 7
- queries on multiple endpoints on the same server HOT 2
- Filed to generate class based on enum HOT 4
- Vulnerable dependency maven:org.codehaus.plexus:plexus-utils:1.5.8 HOT 2
- Java method and params Naming conventions in @GraphQLRepository HOT 1
- Unable to parse variables in GraphQL HOT 14
- Client application fails with springContectBean instantiation error. HOT 1
- Abuse the JSON scalar HOT 4
- Declare plugin thread safe HOT 3
- Error with subscriptions returning enums HOT 3
- Add access token from camel context to the Default Webclient HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphql-maven-plugin-project.