Skip to content

Commit 8a11cc5

Browse files
committed
Drop session from GQL context
1 parent be236ac commit 8a11cc5

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/common/context.type.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { type OperationDefinitionNode } from 'graphql';
2-
import { type BehaviorSubject } from 'rxjs';
32
import type { IRequest, IResponse } from '~/core/http';
4-
import { type Session } from './session';
53

64
/**
75
* The type for graphql @Context() decorator
@@ -10,5 +8,4 @@ export interface GqlContextType {
108
operation: OperationDefinitionNode;
119
request?: IRequest;
1210
response?: IResponse;
13-
readonly session$: BehaviorSubject<Session | undefined>;
1411
}

src/core/graphql/graphql.options.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import {
1010
type OperationDefinitionNode,
1111
} from 'graphql';
1212
import { type Plugin as PluginNoContext } from 'graphql-yoga';
13-
import { BehaviorSubject } from 'rxjs';
14-
import { type GqlContextType, type Session } from '~/common';
13+
import { type GqlContextType } from '~/common';
1514
import { getRegisteredScalars } from '~/common/scalars';
1615
import { ConfigService } from '../config/config.service';
1716
import { VersionService } from '../config/version.service';
@@ -90,7 +89,6 @@ export class GraphqlOptions implements GqlOptionsFactory {
9089
return {
9190
[isGqlContext.KEY]: true,
9291
request,
93-
session$: new BehaviorSubject<Session | undefined>(undefined),
9492
};
9593
};
9694

0 commit comments

Comments
 (0)