Replies: 1 comment 1 reply
-
The first thingI will say is that V14.0 of graphql-java came out in Jan 202 - thats 4.5 years ago. I dont think you will get good outcomes using it in 2024 and I dont think we can really help give great answers that will work with it because it so old. https://github.com/graphql-java/graphql-java/releases/tag/v14.0 I urge you to update. Are you trying to say that you want to format incoming data differently on input or format values on output. Its not clear to me. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
example:
directive @dateFormat(pattern:String) on INPUT_FIELD_DEFINITION
input Test {
date: Date @dateFormat(pattern: "yyyy")
}
public class DateFormatDirective implements SchemaDirectiveWiring {
public DateFormatDirective() {
}
}
I want to format a string as a date type according to the content in the pattern. I tried using DateFormatDirective, but it didn't work. Neither onField nor onInputObjectField worked.
Beta Was this translation helpful? Give feedback.
All reactions