Skip to content

Commit

Permalink
fix: use client sdk when required
Browse files Browse the repository at this point in the history
  • Loading branch information
Diizzayy committed Nov 20, 2022
1 parent f9f7cb4 commit 8da3bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export async function prepareContext (ctx: GqlContext, prefix: string) {
return ` export const ${name}: (...params: Parameters<GqlSdkFuncs['${fn}']>) => ReturnType<GqlSdkFuncs['${fn}']>`
}

ctx.clients = ctx.clients?.filter(c => ctx.clientDocs?.[c])
ctx.clients = ctx.clients?.filter(c => ctx.clientDocs?.[c]?.length)

ctx.generateImports = () => [
'import { useGql } from \'#imports\'',
Expand Down

0 comments on commit 8da3bfb

Please sign in to comment.