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

Feedback for “Configure GraphQL Code Generator” #7048

Open
jasonseminara opened this issue May 30, 2024 · 2 comments
Open

Feedback for “Configure GraphQL Code Generator” #7048

jasonseminara opened this issue May 30, 2024 · 2 comments

Comments

@jasonseminara
Copy link
Contributor

I'm having a hard time generating TypedDocumentNodes in mesh. I have had lots of success with the graphql-codegen and the typed DocNodes are generated properly. I can see the document files being ingested at build time, but I dont know where they're going or what mesh is doing with them.

A string search reveals that my client query name is within a getter called rawSDL() but I have no idea how to use it.

@ardatan
Copy link
Owner

ardatan commented May 30, 2024

SDK -> https://the-guild.dev/graphql/mesh/docs/guides/mesh-sdk#generating-fully-type-safe-sdk
Persisted Operations -> https://the-guild.dev/graphql/mesh/docs/guides/persisted-operations

These are two places Mesh uses documents provided by the user.

@jasonseminara
Copy link
Contributor Author

jasonseminara commented May 30, 2024

Thank you for the quick response!

In the SDK example, my only option is to execute. This doesn't help me generate TypedDocumentNodes to feed to an Apollo Client query hook in React.
I'm trying to replace/replicate (or even trigger) the client-preset we've been using in codegen (https://the-guild.dev/graphql/codegen/plugins/presets/preset-client)

Is this possible or do I need to manually trigger it in some custom extension?

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