diff --git a/packages/rsocket-graphql-apollo-link/src/RSocketLink.ts b/packages/rsocket-graphql-apollo-link/src/RSocketLink.ts index d340110..bf28966 100644 --- a/packages/rsocket-graphql-apollo-link/src/RSocketLink.ts +++ b/packages/rsocket-graphql-apollo-link/src/RSocketLink.ts @@ -17,7 +17,7 @@ import { split } from "@apollo/client/core"; import { getMainDefinition } from "@apollo/client/utilities"; import { RSocketQueryLink } from "./RSocketQueryLink"; -import { SubscriptionLink } from "./SubscriptionLink"; +import { RSocketSubscriptionLink } from "./RSocketSubscriptionLink"; import { RSocket } from "rsocket-core"; export type makeRSocketLinkConfig = { @@ -34,7 +34,7 @@ export const makeRSocketLink = ({ rsocket, route }: makeRSocketLinkConfig) => { definition.operation === "subscription" ); }, - new SubscriptionLink(rsocket, { route }), + new RSocketSubscriptionLink(rsocket, { route }), new RSocketQueryLink(rsocket, { route }) ); }; diff --git a/packages/rsocket-graphql-apollo-link/src/SubscriptionLink.ts b/packages/rsocket-graphql-apollo-link/src/RSocketSubscriptionLink.ts similarity index 97% rename from packages/rsocket-graphql-apollo-link/src/SubscriptionLink.ts rename to packages/rsocket-graphql-apollo-link/src/RSocketSubscriptionLink.ts index c15346f..5826556 100644 --- a/packages/rsocket-graphql-apollo-link/src/SubscriptionLink.ts +++ b/packages/rsocket-graphql-apollo-link/src/RSocketSubscriptionLink.ts @@ -32,7 +32,7 @@ import { WellKnownMimeType, } from "rsocket-composite-metadata"; -export type SubscribeOperation = { +type SubscribeOperation = { query: String; variables: Record; operationName: string; @@ -102,7 +102,7 @@ class SubscriptionClient { } } -export class SubscriptionLink extends ApolloLink { +export class RSocketSubscriptionLink extends ApolloLink { private client: SubscriptionClient; constructor( client: RSocket, diff --git a/packages/rsocket-graphql-apollo-link/src/index.ts b/packages/rsocket-graphql-apollo-link/src/index.ts index b55b887..7dbb3f8 100644 --- a/packages/rsocket-graphql-apollo-link/src/index.ts +++ b/packages/rsocket-graphql-apollo-link/src/index.ts @@ -16,4 +16,4 @@ export { makeRSocketLink, makeRSocketLinkConfig } from "./RSocketLink"; export { RSocketQueryLink } from "./RSocketQueryLink"; -export { SubscriptionLink } from "./SubscriptionLink"; +export { RSocketSubscriptionLink } from "./RSocketSubscriptionLink";