-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modifying directive to allow for client fields
- Loading branch information
1 parent
913d556
commit a47df41
Showing
17 changed files
with
243 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ query ProdQuery @relay_test_operation { | |
id | ||
} | ||
} | ||
# %extensions% |
37 changes: 37 additions & 0 deletions
37
...forms/tests/relay_test_operation/fixtures/test_client_fields_not_generated_query.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
==================================== INPUT ==================================== | ||
query ClientFieldsQuery @relay_test_operation { | ||
node(id: "test-id") { | ||
id | ||
... on User { | ||
name | ||
client_info { | ||
name | ||
description | ||
} | ||
} | ||
} | ||
} | ||
|
||
# %extensions% | ||
|
||
extend type User { | ||
client_info: ClientInfo | ||
} | ||
|
||
type ClientInfo { | ||
name: String | ||
description: String | ||
} | ||
==================================== OUTPUT =================================== | ||
query ClientFieldsQuery @__metadata(relayTestingSelectionTypeInfo: {node: {enumValues: null, nullable: true, plural: false, type: "Node"}, node.id: {enumValues: null, nullable: false, plural: false, type: "ID"}, node.name: {enumValues: null, nullable: true, plural: false, type: "String"}}) { | ||
node(id: "test-id") { | ||
id | ||
... on User { | ||
name | ||
client_info { | ||
name | ||
description | ||
} | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...sforms/tests/relay_test_operation/fixtures/test_client_fields_not_generated_query.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
query ClientFieldsQuery @relay_test_operation { | ||
node(id: "test-id") { | ||
id | ||
... on User { | ||
name | ||
client_info { | ||
name | ||
description | ||
} | ||
} | ||
} | ||
} | ||
|
||
# %extensions% | ||
|
||
extend type User { | ||
client_info: ClientInfo | ||
} | ||
|
||
type ClientInfo { | ||
name: String | ||
description: String | ||
} |
37 changes: 37 additions & 0 deletions
37
...es/relay-transforms/tests/relay_test_operation/fixtures/test_client_fields_query.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
==================================== INPUT ==================================== | ||
query ClientFieldsQuery @relay_test_operation { | ||
node(id: "test-id") { | ||
id | ||
... on User { | ||
name | ||
client_info { | ||
name | ||
description | ||
} | ||
} | ||
} | ||
} | ||
|
||
# %extensions% | ||
|
||
extend type User { | ||
client_info: ClientInfo | ||
} | ||
|
||
type ClientInfo { | ||
name: String | ||
description: String | ||
} | ||
==================================== OUTPUT =================================== | ||
query ClientFieldsQuery @__metadata(relayTestingSelectionTypeInfo: {node: {enumValues: null, nullable: true, plural: false, type: "Node"}, node.id: {enumValues: null, nullable: false, plural: false, type: "ID"}, node.name: {enumValues: null, nullable: true, plural: false, type: "String"}, node.client_info: {enumValues: null, nullable: true, plural: false, type: "ClientInfo"}, node.client_info.name: {enumValues: null, nullable: true, plural: false, type: "String"}, node.client_info.description: {enumValues: null, nullable: true, plural: false, type: "String"}}) { | ||
node(id: "test-id") { | ||
id | ||
... on User { | ||
name | ||
client_info { | ||
name | ||
description | ||
} | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...tes/relay-transforms/tests/relay_test_operation/fixtures/test_client_fields_query.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
query ClientFieldsQuery @relay_test_operation { | ||
node(id: "test-id") { | ||
id | ||
... on User { | ||
name | ||
client_info { | ||
name | ||
description | ||
} | ||
} | ||
} | ||
} | ||
|
||
# %extensions% | ||
|
||
extend type User { | ||
client_info: ClientInfo | ||
} | ||
|
||
type ClientInfo { | ||
name: String | ||
description: String | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ query QueryWitEnums @relay_test_operation { | |
} | ||
} | ||
} | ||
# %extensions% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ query SimpleQuery @relay_test_operation { | |
} | ||
} | ||
} | ||
# %extensions% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.