-
Notifications
You must be signed in to change notification settings - Fork 91
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
Support for JSON input type in Smallrye Graphql #1776
Comments
I did create on same lines 👍 |
Is there any update on this? @t1 |
With @mskacelik we tried experimenting with this, but hit an issue because For example, a map containing a key "a" and value "b" is currently mapped to a GraphQL object like this
whereas the logical JSON object would be
we weren't yet sure how to properly resolve this conflict without breaking backwards compatibility. |
May be a user defined property to enable map mapper will be good. Since everyone using smallrye-graphql are used to Map = [{key: a, value: b}] they should do a parsing as needed. |
Users can provide their own mapper for Maps, overriding the default built-in one |
Also have a use case where we would need to allow for generic JSON to be passed on as part of the query input. We use dynamic variable names and paths that users could filter on, so using JSON scalar could be of benefit here. |
I was reading how it was done in spqr this seems to be a mapper for GSON and JACKSON. |
https://github.com/graphql-java/graphql-java-extended-scalars
The text was updated successfully, but these errors were encountered: