Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Commit cc032c5

Browse files
thicodesalloy
authored andcommitted
Add synced fixtures
1 parent 1abc3a2 commit cc032c5

File tree

4 files changed

+83
-0
lines changed

4 files changed

+83
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
query Test @raw_response_type {
2+
node(id: "1") {
3+
...Test_user
4+
}
5+
}
6+
7+
fragment Test_user on User {
8+
plainUserRenderer {
9+
...Test_userRenderer @module(name: "Renderer.react")
10+
}
11+
}
12+
13+
fragment Test_userRenderer on PlainUserRenderer {
14+
user {
15+
username
16+
}
17+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
query ExampleQuery($id: ID!) @raw_response_type {
2+
node(id: $id) {
3+
username
4+
...FriendFragment
5+
... @include(if: false) {
6+
friends(first: 0) {
7+
count
8+
}
9+
}
10+
}
11+
}
12+
13+
fragment FriendFragment on User {
14+
... @include(if: false) {
15+
name
16+
lastName
17+
feedback {
18+
id
19+
name
20+
}
21+
}
22+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
query TestDefer @raw_response_type {
2+
node(id: "1") {
3+
... on User {
4+
name
5+
friends(first: 10)
6+
@stream_connection(key: "TestDefer_friends", initial_count: 0) {
7+
edges {
8+
node {
9+
actor {
10+
name
11+
}
12+
}
13+
}
14+
}
15+
}
16+
}
17+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
query RelayClientIDFieldQuery($id: ID!) {
2+
__id # ok on query type
3+
me {
4+
__id # ok on object type with 'id'
5+
__typename
6+
id
7+
}
8+
node(id: $id) {
9+
__id # ok on interface type
10+
__typename
11+
id
12+
... on Comment {
13+
commentBody(supported: ["PlainCommentBody"]) {
14+
__id # ok on union type
15+
__typename
16+
... on PlainCommentBody {
17+
__id # ok on object type w/o 'id'
18+
text {
19+
__id # ok on object type w/o 'id'
20+
__typename
21+
text
22+
}
23+
}
24+
}
25+
}
26+
}
27+
}

0 commit comments

Comments
 (0)