mockttp
Version:
Mock HTTP server for testing HTTP clients and stubbing webservices
11 lines • 1.98 kB
TypeScript
export declare class SchemaIntrospector {
private adminServerSchema;
constructor(adminServerSchema: any);
queryTypeDefined(queryType: string): boolean;
isTypeDefined(typeName: string): boolean;
typeHasField(typeName: string, fieldName: string): boolean;
asOptionalField(typeName: string | string[], fieldName: string, specifier?: string): string;
typeHasInputField(typeName: string, fieldName: string): boolean;
}
export declare const introspectionQuery = "\n query IntrospectionQuery {\n __schema {\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n locations\n args {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n fields(includeDeprecated: true) {\n name\n args {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n type { ...TypeRef }\n defaultValue\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n";
//# sourceMappingURL=schema-introspection.d.ts.map