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

Integration with dotansimha/graphql-code-generator #20

Closed
dukedave opened this Issue Apr 12, 2019 · 5 comments

Comments

Projects
None yet
2 participants
@dukedave
Copy link

dukedave commented Apr 12, 2019

Disclaimer: This is purely speculative.

I've been playing with {GraphQL} Code Generator (Github) for a React project, and noticed they have a plugin framework, including a ReasonML client.

I don't know enough about elm-typescript-interop to know if making it a plug in would be feasible? 🤔

@dillonkearns

This comment has been minimized.

Copy link
Owner

dillonkearns commented Apr 12, 2019

Hello! I'm having trouble understanding what problem this would solve. Could you clarify by describing a use case where this would provide value and walk me through how it would be used?

@dillonkearns

This comment has been minimized.

Copy link
Owner

dillonkearns commented Apr 12, 2019

Also, the link to "making it a plugin" seems to be a graphql-code-generator.com plugin. Maybe you meant to open this issue on elm-graphql...? Or maybe I'm missing something. How would elm-typescript-interop be used as a graphql-code-generator.com plugin?

@dukedave

This comment has been minimized.

Copy link
Author

dukedave commented Apr 12, 2019

Could you clarify by describing a use case where this would provide value and walk me through how it would be used?

Sure!

a. More exposure for Elm 😎
b. I suppose it might be convenient if someone already using that code generator could just 'add a plugin' and get Elm code out too.

How would elm-typescript-interop be used as a graphql-code-generator plugin?

I was hoping you could answer that 😂
I know elm-typescript-interop has an NPM package which does the work of generating the Elm code, right? If so I presume it'd be possible to right an interface between that and graphql-code-generator? 🤔

@dillonkearns

This comment has been minimized.

Copy link
Owner

dillonkearns commented Apr 12, 2019

I know elm-typescript-interop has an NPM package which does the work of generating the Elm code, right? If so I presume it'd be possible to right an interface between that and graphql-code-generator? 🤔

It sounds like you're thinking of elm-graphql. elm-typescript-interop doesn't generate Elm code. It generates a TypeScript type definition file. So this project is not related to GraphQL at all. Am I understanding right, or am I missing something?

@dukedave

This comment has been minimized.

Copy link
Author

dukedave commented Apr 12, 2019

@dillonkearns oh, yep, my bad!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.