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

Type mapping #170

Closed
bkniffler opened this issue Oct 3, 2020 · 2 comments
Closed

Type mapping #170

bkniffler opened this issue Oct 3, 2020 · 2 comments

Comments

@bkniffler
Copy link

Hey, great library! I'm currently trying to make a wrapper for urql and with a simple linq-like syntax. One thing thats still holding me off is.. is there a good way to handle custom types like uuid or timestamp or json? Would love to be able to access ValueTypes with these custom mappings somehow, so I won't have unknowns flying around.

Something like ValueTypes<{json: object, uuid: string}> or some parameters for the CLI to use a mapping file or whatever solution?

Thanks

@Vectarian-Jorge
Copy link

Hey @bkniffler, how did you solve it? I'm having a similar issue.

For the return types I see how I can influence the GraphQLTypes via the ZeusScalars. But I cannot figure out how to do the same for the ValueTypes.

@bkniffler
Copy link
Author

I've moved on from zeus a while ago @Vectarian-Jorge. Still really thankful for its existence, great library!

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