Skip to content

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