Skip to content

Commit

Permalink
refactor: rename QueryLink to RSocketQueryLink
Browse files Browse the repository at this point in the history
  • Loading branch information
viglucci committed Sep 12, 2022
1 parent 7437378 commit dc94348
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/rsocket-graphql-apollo-link/src/RSocketLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import { split } from "@apollo/client/core";
import { getMainDefinition } from "@apollo/client/utilities";
import { QueryLink } from "./QueryLink";
import { RSocketQueryLink } from "./RSocketQueryLink";
import { SubscriptionLink } from "./SubscriptionLink";
import { RSocket } from "rsocket-core";

Expand All @@ -35,6 +35,6 @@ export const makeRSocketLink = ({ rsocket, route }: makeRSocketLinkConfig) => {
);
},
new SubscriptionLink(rsocket, { route }),
new QueryLink(rsocket, { route })
new RSocketQueryLink(rsocket, { route })
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type QueryLinkOptions = {
route?: string;
};

export class QueryLink extends ApolloLink {
export class RSocketQueryLink extends ApolloLink {
constructor(
public readonly client: RSocket,
public readonly options: QueryLinkOptions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type SubscriptionLinkOptions = {
route?: string;
};

export class SubscriptionClient {
class SubscriptionClient {
constructor(
public readonly client: RSocket,
private readonly options: SubscriptionLinkOptions
Expand Down
2 changes: 1 addition & 1 deletion packages/rsocket-graphql-apollo-link/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
*/

export { makeRSocketLink, makeRSocketLinkConfig } from "./RSocketLink";
export { QueryLink } from "./QueryLink";
export { RSocketQueryLink } from "./RSocketQueryLink";
export { SubscriptionLink } from "./SubscriptionLink";

0 comments on commit dc94348

Please sign in to comment.