fix: pagination on get my teams fixes #2106

This commit is contained in:
Andrew Bastin
2022-02-03 16:28:55 +05:30
parent ebfbf44140
commit 9918f42bf9
7 changed files with 129 additions and 157 deletions

View File

@@ -167,7 +167,9 @@ export const runGQLQuery = <DocType, DocVarType, DocErrorType extends string>(
args: RunQueryOptions<DocType, DocVarType>
): Promise<E.Either<GQLError<DocErrorType>, DocType>> => {
const request = createRequest<DocType, DocVarType>(args.query, args.variables)
const source = client.value.executeQuery(request)
const source = client.value.executeQuery(request, {
requestPolicy: "network-only",
})
return new Promise((resolve) => {
const sub = wonkaPipe(