Skip to content
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 custom scalar type when using fast-json-stringify serializer #236

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

loveintowind
Copy link

@loveintowind loveintowind commented Nov 24, 2023

When using fast-json-stringify serializer, custom scalar types are not supported.
To fix this, add option for queryToJSONSchema.

This issue can be solved - #216

@ji-hun-jang
Copy link

ji-hun-jang commented Dec 28, 2023

@boopathi @ruiaraujo Can you check this out? thx.

} from "graphql";
import { GraphQLEmailAddress, GraphQLJSONObject } from "graphql-scalars";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In GraphQL Scalars, most of the scalars have jsonSchema defined in the extensions;
https://github.com/Urigo/graphql-scalars/blob/master/src/scalars/EmailAddress.ts#L46
This might be helpful for you.

@airhorns
Copy link
Contributor

This would be really great to get in!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants