File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change 1
1
import { type OperationDefinitionNode } from 'graphql' ;
2
- import { type BehaviorSubject } from 'rxjs' ;
3
2
import type { IRequest , IResponse } from '~/core/http' ;
4
- import { type Session } from './session' ;
5
3
6
4
/**
7
5
* The type for graphql @Context() decorator
@@ -10,5 +8,4 @@ export interface GqlContextType {
10
8
operation : OperationDefinitionNode ;
11
9
request ?: IRequest ;
12
10
response ?: IResponse ;
13
- readonly session$ : BehaviorSubject < Session | undefined > ;
14
11
}
Original file line number Diff line number Diff line change @@ -10,8 +10,7 @@ import {
10
10
type OperationDefinitionNode ,
11
11
} from 'graphql' ;
12
12
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' ;
15
14
import { getRegisteredScalars } from '~/common/scalars' ;
16
15
import { ConfigService } from '../config/config.service' ;
17
16
import { VersionService } from '../config/version.service' ;
@@ -90,7 +89,6 @@ export class GraphqlOptions implements GqlOptionsFactory {
90
89
return {
91
90
[ isGqlContext . KEY ] : true ,
92
91
request,
93
- session$ : new BehaviorSubject < Session | undefined > ( undefined ) ,
94
92
} ;
95
93
} ;
96
94
You can’t perform that action at this time.
0 commit comments