Skip to content

Commit

Permalink
Move 'introspectionQuery.js' to 'getIntrospectionQuery.js' (#2125)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Sep 14, 2019
1 parent 6de48b0 commit be30408
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/type/__tests__/introspection-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import invariant from '../../jsutils/invariant';
import { missingFieldArgMessage } from '../../validation/rules/ProvidedRequiredArguments';

import { graphqlSync } from '../../graphql';
import { getIntrospectionQuery } from '../../utilities/introspectionQuery';
import { getIntrospectionQuery } from '../../utilities/getIntrospectionQuery';

import { GraphQLSchema } from '../schema';
import { GraphQLString } from '../scalars';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { parse } from '../../language/parser';
import { execute } from '../../execution/execute';

import { buildSchema } from '../buildASTSchema';
import { getIntrospectionQuery } from '../introspectionQuery';
import { getIntrospectionQuery } from '../getIntrospectionQuery';

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

Expand Down
2 changes: 1 addition & 1 deletion src/utilities/buildClientSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ import {
type IntrospectionInputTypeRef,
type IntrospectionOutputTypeRef,
type IntrospectionNamedTypeRef,
} from './introspectionQuery';
} from './getIntrospectionQuery';

type Options = {|
...GraphQLSchemaValidationOptions,
Expand Down
File renamed without changes.
11 changes: 4 additions & 7 deletions src/utilities/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
// @flow strict

// The GraphQL query recommended for a full schema introspection.
export {
// Produce the GraphQL query recommended for a full schema introspection.
// Accepts optional IntrospectionOptions.
getIntrospectionQuery,
} from './introspectionQuery';
// Produce the GraphQL query recommended for a full schema introspection.
// Accepts optional IntrospectionOptions.
export { getIntrospectionQuery } from './getIntrospectionQuery';

export type {
IntrospectionOptions,
Expand All @@ -30,7 +27,7 @@ export type {
IntrospectionInputValue,
IntrospectionEnumValue,
IntrospectionDirective,
} from './introspectionQuery';
} from './getIntrospectionQuery';

// Gets the target Operation from a Document.
export { getOperationAST } from './getOperationAST';
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/introspectionFromSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
type IntrospectionQuery,
type IntrospectionOptions,
getIntrospectionQuery,
} from './introspectionQuery';
} from './getIntrospectionQuery';

/**
* Build an IntrospectionQuery from a GraphQLSchema
Expand Down
2 changes: 1 addition & 1 deletion src/validation/__tests__/validateGQL-benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { parse } from '../../language/parser';
import { buildSchema } from '../../utilities/buildASTSchema';
import { getIntrospectionQuery } from '../../utilities/introspectionQuery';
import { getIntrospectionQuery } from '../../utilities/getIntrospectionQuery';

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

Expand Down
2 changes: 1 addition & 1 deletion tstypes/utilities/buildClientSchema.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IntrospectionQuery } from './introspectionQuery';
import { IntrospectionQuery } from './getIntrospectionQuery';
import { GraphQLSchema, GraphQLSchemaValidationOptions } from '../type/schema';

interface Options extends GraphQLSchemaValidationOptions {}
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions tstypes/utilities/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// The GraphQL query recommended for a full schema introspection.
export { getIntrospectionQuery } from './introspectionQuery';

export {
// Produce the GraphQL query recommended for a full schema introspection.
// Accepts optional IntrospectionOptions.
getIntrospectionQuery,
IntrospectionOptions,
IntrospectionQuery,
IntrospectionSchema,
Expand All @@ -24,7 +24,7 @@ export {
IntrospectionInputValue,
IntrospectionEnumValue,
IntrospectionDirective,
} from './introspectionQuery';
} from './getIntrospectionQuery';

// Gets the target Operation from a Document
export { getOperationAST } from './getOperationAST';
Expand Down
5 changes: 4 additions & 1 deletion tstypes/utilities/introspectionFromSchema.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { GraphQLSchema } from '../type/schema';
import { IntrospectionQuery, IntrospectionOptions } from './introspectionQuery';
import {
IntrospectionQuery,
IntrospectionOptions,
} from './getIntrospectionQuery';

/**
* Build an IntrospectionQuery from a GraphQLSchema
Expand Down

0 comments on commit be30408

Please sign in to comment.