diff --git a/packages/api-graphql/__tests__/v6-test.ts b/packages/api-graphql/__tests__/v6-test.ts index c5e4b1d7a8c..62297761b8c 100644 --- a/packages/api-graphql/__tests__/v6-test.ts +++ b/packages/api-graphql/__tests__/v6-test.ts @@ -7,8 +7,6 @@ import * as untypedQueries from './fixtures/without-types/queries'; import * as untypedMutations from './fixtures/without-types/mutations'; import * as untypedSubscriptions from './fixtures/without-types/subscriptions'; import { Observable } from 'zen-observable-ts'; -// TODO: -// import { AWSAppSyncRealTimeProvider } from '@aws-amplify/pubsub'; import { InternalPubSub } from '@aws-amplify/pubsub/internals'; import { expectGet, diff --git a/packages/api-graphql/src/types/index.ts b/packages/api-graphql/src/types/index.ts index 29b71e009ed..ca989d0d148 100644 --- a/packages/api-graphql/src/types/index.ts +++ b/packages/api-graphql/src/types/index.ts @@ -2,11 +2,7 @@ // SPDX-License-Identifier: Apache-2.0 import { Source, DocumentNode, GraphQLError } from 'graphql'; export { OperationTypeNode } from 'graphql'; -// import { GRAPHQL_AUTH_MODE } from '@aws-amplify/auth'; -// export { GRAPHQL_AUTH_MODE }; import { Observable } from 'zen-observable-ts'; -// TODO: remove for now: -// import { AWSAppSyncRealTimeProvider } from '@aws-amplify/pubsub'; export type GraphQLAuthMode = 'AWS_IAM' | 'COGNITO_USERPOOLS' | 'API_KEY'; @@ -16,13 +12,12 @@ export type GraphQLAuthMode = 'AWS_IAM' | 'COGNITO_USERPOOLS' | 'API_KEY'; export interface GraphQLOptions { query: string | DocumentNode; variables?: Record; - // authMode?: GraphQLAuthMode; authMode?: string; authToken?: string; /** * @deprecated This property should not be used */ - userAgentSuffix?: string; // TODO: remove in v6 + userAgentSuffix?: string; } export interface GraphQLResult { @@ -131,7 +126,7 @@ export interface GraphQLOptionsV6< /** * @deprecated This property should not be used */ - userAgentSuffix?: string; // TODO: remove in v6 + userAgentSuffix?: string; } /**