Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move 'introspectionQuery.js' to 'getIntrospectionQuery.js' #2125

Merged
merged 1 commit into from
Aug 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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