Skip to content

Commit 955d66e

Browse files
committed
Add 'introspectionFromSchema' utility function
Based on graphql#1114 by @mjmahone
1 parent fd4a69c commit 955d66e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,8 @@ export {
309309
introspectionQuery,
310310
// Gets the target Operation from a Document
311311
getOperationAST,
312+
// Convert a GraphQLSchema to an IntrospectionQuery
313+
introspectionFromSchema,
312314
// Build a GraphQLSchema from an introspection result.
313315
buildClientSchema,
314316
// Build a GraphQLSchema from a parsed GraphQL Schema language AST.

src/utilities/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ export type {
4141
// Gets the target Operation from a Document
4242
export { getOperationAST } from './getOperationAST';
4343

44+
// Convert a GraphQLSchema to an IntrospectionQuery
45+
export { introspectionFromSchema } from './introspectionFromSchema';
46+
4447
// Build a GraphQLSchema from an introspection result.
4548
export { buildClientSchema } from './buildClientSchema';
4649

0 commit comments

Comments
 (0)