fix: schema builder use same type definitions storage across tenant (#2525)
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { Injectable, Scope } from '@nestjs/common';
|
||||
|
||||
import { GraphQLInputObjectType, GraphQLObjectType } from 'graphql';
|
||||
|
||||
@ -12,7 +12,8 @@ import {
|
||||
ObjectTypeDefinitionKind,
|
||||
} from 'src/tenant/schema-builder/factories/object-type-definition.factory';
|
||||
|
||||
@Injectable()
|
||||
// Must be scoped on REQUEST level
|
||||
@Injectable({ scope: Scope.REQUEST })
|
||||
export class TypeDefinitionsStorage {
|
||||
private readonly objectTypeDefinitions = new Map<
|
||||
string,
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
/* eslint-disable @typescript-eslint/no-empty-function */
|
||||
import { Injectable } from '@nestjs/common';
|
||||
|
||||
import { GraphQLSchema, printSchema } from 'graphql';
|
||||
|
||||
Reference in New Issue
Block a user