mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix type overrides of GQL service getSchema
This commit is contained in:
@@ -28,6 +28,7 @@ import {
|
||||
GraphQLError,
|
||||
GraphQLNonNull,
|
||||
FragmentDefinitionNode,
|
||||
GraphQLSchema,
|
||||
} from 'graphql';
|
||||
import { getGraphQLType } from '../utils/get-graphql-type';
|
||||
import { RelationsService } from './relations';
|
||||
@@ -142,6 +143,9 @@ export class GraphQLService {
|
||||
/**
|
||||
* Generate the GraphQL schema. Pulls from the schema information generated by the get-schema util.
|
||||
*/
|
||||
getSchema(): GraphQLSchema;
|
||||
getSchema(type: 'schema'): GraphQLSchema;
|
||||
getSchema(type: 'sdl'): string;
|
||||
getSchema(type: 'schema' | 'sdl' = 'schema') {
|
||||
const self = this;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user