Replies: 1 comment
-
After thinking this through a bit more, the correct way to handle this is just to define an input type like so:
No GraphQLArgument-like annotation required |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For queries that return collections, I want to define a PagingOptions argument like so:
A query might look like:
public Page<UserType> getUsers(@GraphQLArgument StandardCollectionArgs options)
The default values for the PagingOptions fields are stated in the class declaration. How would I declare the default value for the options argument in the query? I could use
@GraphQLArgument(defaultValue="JSON representation of the PagingOptions"),
but I'd have to repeat that everywhere I include a PagingOptions argument. Same goes for defaultValueProvider.Is there any why to associate a default value with a class used as a GraphQLArgument?
Beta Was this translation helpful? Give feedback.
All reactions