Skip to content

docs: add example documentation for raw JSON scalar (issue #427)#467

Merged
hlship merged 2 commits intowalmartlabs:masterfrom
juanscasado:docs/json-scalar-example-427
Oct 9, 2025
Merged

docs: add example documentation for raw JSON scalar (issue #427)#467
hlship merged 2 commits intowalmartlabs:masterfrom
juanscasado:docs/json-scalar-example-427

Conversation

@juanscasado
Copy link

This PR adds a new documentation page, json-scalar-example.md, that demonstrates how to implement and use a raw JSON scalar in Lacinia.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@juanscasado
Copy link
Author

juanscasado commented Sep 10, 2025

Description:

This PR adds a new documentation page, json-scalar-example.md, that demonstrates how to implement and use a raw JSON scalar in Lacinia.

Highlights:

Motivation for supporting a raw JSON scalar in GraphQL APIs.
Schema definition in EDN.
Clojure code examples for parsing and serializing JSON using Cheshire.
Sample GraphQL query and response.
Recommendations and warnings.
Additional SDL schema example.
This contribution addresses issue #427 and aims to help users who frequently ask about supporting arbitrary JSON data in their GraphQL APIs.

@hlship hlship added this to the 1.3.0 milestone Oct 6, 2025
@hlship hlship merged commit f369cdd into walmartlabs:master Oct 9, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants