Skip to content

Commit fe2ee65

Browse files
committed
Merge pull request #46 from andimarek/master
Rename GraphQLFieldArgument to GraphQLArgument
2 parents 422bb22 + 5835252 commit fe2ee65

File tree

6 files changed

+13
-12
lines changed

6 files changed

+13
-12
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ lib
88
node_modules
99
npm-debug.log
1010
coverage
11+
*.iml

src/executor/values.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
GraphQLList,
2222
GraphQLNonNull,
2323
} from '../type/definition';
24-
import type { GraphQLFieldArgument, GraphQLType } from '../type/definition';
24+
import type { GraphQLArgument, GraphQLType } from '../type/definition';
2525
import type { GraphQLSchema } from '../type/schema';
2626
import type {
2727
Argument,
@@ -55,7 +55,7 @@ export function getVariableValues(
5555
* definitions and list of argument AST nodes.
5656
*/
5757
export function getArgumentValues(
58-
argDefs: Array<GraphQLFieldArgument>,
58+
argDefs: Array<GraphQLArgument>,
5959
argASTs: ?Array<Argument>,
6060
variables: { [key: string]: any }
6161
): { [key: string]: any } {

src/type/definition.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ export type GraphQLFieldDefinition = {
364364
name: string;
365365
description: ?string;
366366
type: GraphQLOutputType;
367-
args: Array<GraphQLFieldArgument>;
367+
args: Array<GraphQLArgument>;
368368
resolve?: (
369369
source?: any,
370370
args?: ?{[argName: string]: any},
@@ -377,7 +377,7 @@ export type GraphQLFieldDefinition = {
377377
deprecationReason?: ?string;
378378
}
379379

380-
export type GraphQLFieldArgument = {
380+
export type GraphQLArgument = {
381381
name: string;
382382
type: GraphQLInputType;
383383
defaultValue?: any;

src/type/directives.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010

1111
import { GraphQLNonNull } from './definition';
12-
import type { GraphQLFieldArgument } from './definition';
12+
import type { GraphQLArgument } from './definition';
1313
import { GraphQLBoolean } from './scalars';
1414

1515

@@ -20,7 +20,7 @@ import { GraphQLBoolean } from './scalars';
2020
export class GraphQLDirective {
2121
name: string;
2222
description: ?string;
23-
args: Array<GraphQLFieldArgument>;
23+
args: Array<GraphQLArgument>;
2424
onOperation: boolean;
2525
onFragment: boolean;
2626
onField: boolean;
@@ -38,7 +38,7 @@ export class GraphQLDirective {
3838
type GraphQLDirectiveConfig = {
3939
name: string;
4040
description?: string;
41-
args: Array<GraphQLFieldArgument>;
41+
args: Array<GraphQLArgument>;
4242
onOperation: boolean;
4343
onFragment: boolean;
4444
onField: boolean;

src/utils/TypeInfo.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import type {
2626
GraphQLOutputType,
2727
GraphQLCompositeType,
2828
GraphQLFieldDefinition,
29-
GraphQLFieldArgument
29+
GraphQLArgument
3030
} from '../type/definition';
3131
import type { GraphQLDirective } from '../type/directives';
3232
import {
@@ -52,7 +52,7 @@ export default class TypeInfo {
5252
_inputTypeStack: Array<?GraphQLInputType>;
5353
_fieldDefStack: Array<?GraphQLFieldDefinition>;
5454
_directive: ?GraphQLDirective;
55-
_argument: ?GraphQLFieldArgument;
55+
_argument: ?GraphQLArgument;
5656

5757
constructor(schema: GraphQLSchema) {
5858
this._schema = schema;
@@ -92,7 +92,7 @@ export default class TypeInfo {
9292
return this._directive;
9393
}
9494

95-
getArgument(): ?GraphQLFieldArgument {
95+
getArgument(): ?GraphQLArgument {
9696
return this._argument;
9797
}
9898

src/validator/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import type {
2323
GraphQLOutputType,
2424
GraphQLCompositeType,
2525
GraphQLFieldDefinition,
26-
GraphQLFieldArgument
26+
GraphQLArgument
2727
} from '../type/definition';
2828
import type { GraphQLDirective } from '../type/directives';
2929
import TypeInfo from '../utils/TypeInfo';
@@ -263,7 +263,7 @@ export class ValidationContext {
263263
return this._typeInfo.getDirective();
264264
}
265265

266-
getArgument(): ?GraphQLFieldArgument {
266+
getArgument(): ?GraphQLArgument {
267267
return this._typeInfo.getArgument();
268268
}
269269
}

0 commit comments

Comments
 (0)