Skip to content

Commit 74284b2

Browse files
cairomassimomathstuf
authored andcommitted
fragment_chain: add test case
Reported in #286.
1 parent c48a3cf commit 74284b2

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
use graphql_client::*;
2+
3+
#[allow(dead_code)]
4+
#[derive(GraphQLQuery)]
5+
#[graphql(
6+
schema_path = "tests/fragment_chain/schema.graphql",
7+
query_path = "tests/fragment_chain/query.graphql"
8+
)]
9+
struct Q;
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
query Q {
2+
...FragmentB
3+
}
4+
5+
fragment FragmentB on Query {
6+
...FragmentA
7+
}
8+
9+
fragment FragmentA on Query {
10+
x
11+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
type Query {
2+
x: String
3+
}

0 commit comments

Comments
 (0)