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

Zod Integration #45

Open
mishushakov opened this issue Mar 18, 2023 · 5 comments
Open

Zod Integration #45

mishushakov opened this issue Mar 18, 2023 · 5 comments

Comments

@mishushakov
Copy link
Member

mishushakov commented Mar 18, 2023

Here's a proposal

  1. Create garph types from Zod types:
const type = g.zodType('name', yourZodType)
  1. Create garph scalars from Zod types:
const type = g.zodScalar('name', yourZodType)
  1. Create garph inputs from Zod types:
const type = g.zodInput('name', yourZodType)
  1. Create Zod types from Garph types:
type.toZod()
@mishushakov mishushakov changed the title Create garph types from Zod Zod Integration May 31, 2023
@mishushakov
Copy link
Member Author

Hey folks, I'm seeing some of you have upvoted the issue (@christopher-caldwell, @binamralamsal, @raja-OX, @tyler-mitchell, @BurnedChris, @arthur-fontaine, @joshuabaker, @fenos, @hanssonduck, @ian-os, @sebastian-herrera, @mailaneel, @mihazs).

Maybe you'd be interested in sponsoring this feature in Garph?
Let me know.

@arthur-fontaine
Copy link

👋 @mishushakov, sponsoring OSS is not in my student budget :/, but I could contribute and implement (or help to) this feature in some weeks (~4/5 I think) if you want.

@christopher-caldwell
Copy link

Unfortunately it's a no from me. I have started using Pothos.

@mishushakov
Copy link
Member Author

Hey @arthur-fontaine thanks for showing up! If you have the time and the grit, you should totally give it a go.
Once you have any proof-of-concept, feel free to post it here or link to a repository. I'd be glad to be assisting you in achieving this 😄

@mishushakov
Copy link
Member Author

@christopher-caldwell Fair enough! Could you give us any feedback? What makes Pothos better than Garph in your eyes?
Thanks for sticking around for so long 🙏

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

3 participants