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

How to specify parse and serialize methods? #18

Closed
vinaybedre opened this issue Aug 14, 2022 · 1 comment
Closed

How to specify parse and serialize methods? #18

vinaybedre opened this issue Aug 14, 2022 · 1 comment

Comments

@vinaybedre
Copy link

Hi,

When using custom scalars, we need 2 methods, one to map value when data is received by the backend (parse), another method to serialize value, which is used to send the data to the backend.

How can I achieve with using custom scalar exchange? Docs do not specify anything about this and also couldn't find anything in closed/open issues.

Can someone help?

@clentfort
Copy link
Owner

This library only supports turning scalars into JavaScript objects and not the other way around. You will need to implement mutations yourself. Also see #8

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

No branches or pull requests

2 participants