Skip to content

Commit

Permalink
fix build (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunyel authored Dec 21, 2022
1 parent 52f81f2 commit b8f338d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/buildGqlQuery/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as gqlTypes from '../graphql-ast-types-browser';
import { IntrospectionField } from 'graphql';
import { IntrospectionField, OperationTypeNode } from 'graphql';
import {
GET_LIST,
GET_MANY,
Expand Down Expand Up @@ -91,7 +91,7 @@ export const buildGqlQuery: BuildGqlQuery =
}
return gqlTypes.document([
gqlTypes.operationDefinition(
'query',
OperationTypeNode.QUERY,
gqlTypes.selectionSet(gqlArray),
gqlTypes.name(queryType.name),
apolloArgs
Expand All @@ -108,7 +108,7 @@ export const buildGqlQuery: BuildGqlQuery =
) {
return gqlTypes.document([
gqlTypes.operationDefinition(
'mutation',
OperationTypeNode.MUTATION,
gqlTypes.selectionSet([
gqlTypes.field(
gqlTypes.name(queryType.name),
Expand All @@ -134,7 +134,7 @@ export const buildGqlQuery: BuildGqlQuery =

return gqlTypes.document([
gqlTypes.operationDefinition(
'query',
OperationTypeNode.QUERY,
gqlTypes.selectionSet([
gqlTypes.field(
gqlTypes.name(queryType.name),
Expand Down

0 comments on commit b8f338d

Please sign in to comment.