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

Fix/nitro gql fragments #499

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

freality
Copy link

@freality freality commented Jul 1, 2024

I rewrote the #gql-nitro virtual code to import { getSdk } from '#gql/default' instead of generating gql docs from the clientSdks code which excludes fragment definitions.

I've found no issues with this approach. And this solution fixes #333.

freality and others added 3 commits June 30, 2024 22:46
Rewrite #gql-nitro to import getSdk instead of generating its own code.
This resolves the issue of fragment errors when executing gql functions
in server handlers.
@Diizzayy
Copy link
Owner

@freality I'd be happy to merge this once it's modified to properly support multiple clients, the current implementation is only for the default client if one is specified

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

Successfully merging this pull request may close these issues.

Unknown fragment in server functions
3 participants