Skip to content
Open
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 fixtures/directiveSchemas/baseTypes.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type NestedFoo {
}

enum Bar {
MORE @multiArgAndType(stringArg: "string", booleanArg: true, intArg: 314, floatArg: 3.14)
MORE @multiArgAndType(stringArg: "string", booleanArg: true, intArg: 314, floatArg: 3.14, listArg: ["string"])
VALUES
EVERYONE
}
Expand Down
5 changes: 3 additions & 2 deletions fixtures/directiveSchemas/directives.graphql
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
"""This directive demonstrates using multiple args with multiple types."""
directive @multiArgAndType(stringArg: String!, booleanArg: Boolean!, intArg: Int!, floatArg: Float!) on ENUM_VALUE | FIELD_DEFINITION | OBJECT
directive @multiArgAndType(stringArg: String!, booleanArg: Boolean!, intArg: Int!, floatArg: Float!, listArg: [String!]!) on ENUM_VALUE | FIELD_DEFINITION | OBJECT

# This directive demonstrates using no args. And using comment syntax instead
directive @noArg on ENUM_VALUE | FIELD_DEFINITION | OBJECT

"""This directive demonstrates null types."""
directive @nullArg(stringArg: String) on ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | OBJECT
directive @nullArg(stringArg: String) on ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | OBJECT

2 changes: 1 addition & 1 deletion fixtures/directiveSchemas/extendedTypes.graphql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
extend type NestedFoo {
anotherAttribute: String! @multiArgAndType(stringArg: "string", booleanArg: true, intArg: 314, floatArg: 3.14) @noArg
anotherAttribute: String! @multiArgAndType(stringArg: "string", booleanArg: true, intArg: 314, floatArg: 3.14, listArg: ["string"]) @noArg
oldAttribute: String! @deprecated(reason: "reason")
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""This directive demonstrates using multiple args with multiple types."""
directive @multiArgAndType(stringArg: String!, booleanArg: Boolean!, intArg: Int!, floatArg: Float!) on ENUM_VALUE | FIELD_DEFINITION | OBJECT
directive @multiArgAndType(stringArg: String!, booleanArg: Boolean!, intArg: Int!, floatArg: Float!, listArg: [String!]!) on ENUM_VALUE | FIELD_DEFINITION | OBJECT

"""
This directive demonstrates using no args. And using comment syntax instead
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""This directive demonstrates using multiple args with multiple types."""
directive @multiArgAndType(stringArg: String!, booleanArg: Boolean!, intArg: Int!, floatArg: Float!) on ENUM_VALUE | FIELD_DEFINITION | OBJECT
directive @multiArgAndType(stringArg: String!, booleanArg: Boolean!, intArg: Int!, floatArg: Float!, listArg: [String!]!) on ENUM_VALUE | FIELD_DEFINITION | OBJECT

"""
This directive demonstrates using no args. And using comment syntax instead
Expand All @@ -10,7 +10,7 @@ directive @noArg on ENUM_VALUE | FIELD_DEFINITION | OBJECT
directive @nullArg(stringArg: String) on ENUM_VALUE | FIELD_DEFINITION | INPUT_FIELD_DEFINITION | OBJECT

enum Bar {
MORE @multiArgAndType(stringArg: "string", booleanArg: true, intArg: 314, floatArg: 3.14)
MORE @multiArgAndType(stringArg: "string", booleanArg: true, intArg: 314, floatArg: 3.14, listArg: ["string"])
VALUES
EVERYONE
}
Expand All @@ -28,6 +28,6 @@ input Input {
type NestedFoo {
id: ID!
bar: Bar!
anotherAttribute: String! @multiArgAndType(stringArg: "string", booleanArg: true, intArg: 314, floatArg: 3.14) @noArg
anotherAttribute: String! @multiArgAndType(stringArg: "string", booleanArg: true, intArg: 314, floatArg: 3.14, listArg: ["string"]) @noArg
oldAttribute: String! @deprecated(reason: "reason")
}
Loading