JSON Scalar best practice?
See original GitHub issueWe’re using GraphQL to implement a custom JSON
scalar that maps internally to a Jackson JsonNode.
What is the best practice for doing this? The challenge we’re facing is the best way to turn an ObjectValue
into a Map<String,Object>
or a JsonNode
for parsing inputs to mutations.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Custom scalars - Apollo GraphQL Docs
The serialize method converts the scalar's back-end representation to a JSON-compatible format so Apollo Server can include it in an operation response.
Read more >The Complete Guide to Working With JSON - Nylas
In this section, we'll suggest some best practices to avoid common JSON errors: Always enclose the key, value pair within double quotes.
Read more >Extract scalar values from JSON data using JSON_VALUE()
In this article, we will explore JSON_VALUE() function in SQL Server to extract scalar values from JSON data.
Read more >Best Practices in Designing JSON Document Model in ...
Best Practices in Designing JSON Document Model in Autonomous JSON DatabaseSlide Deck: http://bit.ly/ajd-slidedeck-210330This webinar ...
Read more >Working with JSON data in Google Standard SQL | BigQuery
On this page · Overview · Limitations · Create a table with a JSON column · Create JSON values. Create a JSON literal;...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
See https://github.com/graphql-java/graphql-java-extended-scalars for a JSON scalar.
So we copied the approach from GraphQL.js.