wgc
Version:
The official CLI tool to manage the GraphQL Federation Platform Cosmo
10 lines (9 loc) • 392 B
TypeScript
import { GraphQLSchema } from 'graphql';
/**
* Removes all directive definitions and directive usages from a GraphQL schema string
* and returns a built GraphQLSchema.
*
* @param schemaString - The GraphQL schema string to process
* @returns A built GraphQLSchema with all directives removed
*/
export declare function buildSchemaWithoutDirectives(schemaString: string): GraphQLSchema;