Skip to content

Commit f32cb65

Browse files
committed
Move 'introspectionQuery.js' to 'getIntrospectionQuery.js' (#2125)
1 parent 933ba0f commit f32cb65

11 files changed

+18
-18
lines changed

src/type/__tests__/introspection-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import invariant from '../../jsutils/invariant';
88
import { missingFieldArgMessage } from '../../validation/rules/ProvidedRequiredArguments';
99

1010
import { graphqlSync } from '../../graphql';
11-
import { getIntrospectionQuery } from '../../utilities/introspectionQuery';
11+
import { getIntrospectionQuery } from '../../utilities/getIntrospectionQuery';
1212

1313
import { GraphQLSchema } from '../schema';
1414
import { GraphQLString } from '../scalars';

src/utilities/__tests__/introspectionFromSchema-benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { parse } from '../../language/parser';
44
import { execute } from '../../execution/execute';
55

66
import { buildSchema } from '../buildASTSchema';
7-
import { getIntrospectionQuery } from '../introspectionQuery';
7+
import { getIntrospectionQuery } from '../getIntrospectionQuery';
88

99
import { bigSchemaSDL } from '../../__fixtures__';
1010

src/utilities/buildClientSchema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ import {
5050
type IntrospectionInputTypeRef,
5151
type IntrospectionOutputTypeRef,
5252
type IntrospectionNamedTypeRef,
53-
} from './introspectionQuery';
53+
} from './getIntrospectionQuery';
5454

5555
type Options = {|
5656
...GraphQLSchemaValidationOptions,

src/utilities/index.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
// @flow strict
22

3-
// The GraphQL query recommended for a full schema introspection.
4-
export {
5-
// Produce the GraphQL query recommended for a full schema introspection.
6-
// Accepts optional IntrospectionOptions.
7-
getIntrospectionQuery,
8-
} from './introspectionQuery';
3+
// Produce the GraphQL query recommended for a full schema introspection.
4+
// Accepts optional IntrospectionOptions.
5+
export { getIntrospectionQuery } from './getIntrospectionQuery';
96

107
export type {
118
IntrospectionOptions,
@@ -30,7 +27,7 @@ export type {
3027
IntrospectionInputValue,
3128
IntrospectionEnumValue,
3229
IntrospectionDirective,
33-
} from './introspectionQuery';
30+
} from './getIntrospectionQuery';
3431

3532
// Gets the target Operation from a Document.
3633
export { getOperationAST } from './getOperationAST';

src/utilities/introspectionFromSchema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
type IntrospectionQuery,
1212
type IntrospectionOptions,
1313
getIntrospectionQuery,
14-
} from './introspectionQuery';
14+
} from './getIntrospectionQuery';
1515

1616
/**
1717
* Build an IntrospectionQuery from a GraphQLSchema

src/validation/__tests__/validateGQL-benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import { parse } from '../../language/parser';
44
import { buildSchema } from '../../utilities/buildASTSchema';
5-
import { getIntrospectionQuery } from '../../utilities/introspectionQuery';
5+
import { getIntrospectionQuery } from '../../utilities/getIntrospectionQuery';
66

77
import { validate } from '../validate';
88

tstypes/utilities/buildClientSchema.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { IntrospectionQuery } from './introspectionQuery';
1+
import { IntrospectionQuery } from './getIntrospectionQuery';
22
import { GraphQLSchema, GraphQLSchemaValidationOptions } from '../type/schema';
33

44
interface Options extends GraphQLSchemaValidationOptions {}

tstypes/utilities/index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// The GraphQL query recommended for a full schema introspection.
2-
export { getIntrospectionQuery } from './introspectionQuery';
3-
41
export {
2+
// Produce the GraphQL query recommended for a full schema introspection.
3+
// Accepts optional IntrospectionOptions.
4+
getIntrospectionQuery,
55
IntrospectionOptions,
66
IntrospectionQuery,
77
IntrospectionSchema,
@@ -24,7 +24,7 @@ export {
2424
IntrospectionInputValue,
2525
IntrospectionEnumValue,
2626
IntrospectionDirective,
27-
} from './introspectionQuery';
27+
} from './getIntrospectionQuery';
2828

2929
// Gets the target Operation from a Document
3030
export { getOperationAST } from './getOperationAST';

tstypes/utilities/introspectionFromSchema.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import { GraphQLSchema } from '../type/schema';
2-
import { IntrospectionQuery, IntrospectionOptions } from './introspectionQuery';
2+
import {
3+
IntrospectionQuery,
4+
IntrospectionOptions,
5+
} from './getIntrospectionQuery';
36

47
/**
58
* Build an IntrospectionQuery from a GraphQLSchema

0 commit comments

Comments
 (0)