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

Generate expected format depending on custom scalars (Date) #8

Open
VincentGarreau opened this issue Dec 10, 2024 · 0 comments
Open

Comments

@VincentGarreau
Copy link

VincentGarreau commented Dec 10, 2024

Hello! It seems the generated format for fields depending on custom scalars does not correspond. Not sure it's something we could add/fix? I know we could override it in the resolvers files, but is it possible to have the expected format directly in the generated json mock file?

Schema:
Screenshot 2024-12-10 at 15 43 20

Custom scalar (Date) defined in my code:
-> The returned value is an Integer
Screenshot 2024-12-10 at 15 46 13

Moquerie dashboard:
-> We set any custom value in timestamp format
Screenshot 2024-12-10 at 15 41 17

Generated mock file
-> Should be an Integer instead of String?
Screenshot 2024-12-10 at 15 44 02

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

1 participant