Skip to content

Commit d3020b1

Browse files
Make introspectionFromSchema options argument optional (#1408)
1 parent d30cd0c commit d3020b1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/utilities/__tests__/introspectionFromSchema-test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow strict
68
*/
79

810
import { describe, it } from 'mocha';

src/utilities/introspectionFromSchema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import type {
2828
*/
2929
export function introspectionFromSchema(
3030
schema: GraphQLSchema,
31-
options: IntrospectionOptions,
31+
options?: IntrospectionOptions,
3232
): IntrospectionQuery {
3333
const queryAST = parse(getIntrospectionQuery(options));
3434
const result = execute(schema, queryAST);

0 commit comments

Comments
 (0)