Skip to content

Commit

Permalink
update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-apollo committed Oct 29, 2024
1 parent 3d4414b commit 7ed3101
Show file tree
Hide file tree
Showing 3 changed files with 146 additions and 6 deletions.
136 changes: 134 additions & 2 deletions ...ation/src/sources/connect/expand/tests/snapshots/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,21 @@ input_file: apollo-federation/src/sources/connect/expand/tests/schemas/expand/ke
},
None,
),
Field(
None,
WithRange {
node: Field(
"unselected",
),
range: Some(
7..17,
),
},
None,
),
],
range: Some(
0..6,
0..17,
),
},
),
Expand Down Expand Up @@ -202,9 +214,129 @@ input_file: apollo-federation/src/sources/connect/expand/tests/schemas/expand/ke
},
None,
),
Field(
None,
WithRange {
node: Field(
"unselected",
),
range: Some(
7..17,
),
},
None,
),
],
range: Some(
0..6,
0..17,
),
},
),
config: None,
max_requests: None,
entity_resolver: Some(
Explicit,
),
},
"one_Query_unselected_0": Connector {
id: ConnectId {
label: "one. http: GET http://localhost/ts/{$args.unselected}",
subgraph_name: "one",
source_name: None,
directive: ObjectOrInterfaceFieldDirectivePosition {
field: Object(Query.unselected),
directive_name: "connect",
directive_index: 0,
},
},
transport: HttpJsonTransport {
source_url: None,
connect_template: URLTemplate {
base: Some(
Url {
scheme: "http",
cannot_be_a_base: false,
username: "",
password: None,
host: Some(
Domain(
"localhost",
),
),
port: None,
path: "/",
query: None,
fragment: None,
},
),
path: [
Component {
parts: [
Text(
"ts",
),
],
},
Component {
parts: [
Var(
Variable {
var_type: Args,
path: "unselected",
location: 21..37,
},
),
],
},
],
query: {},
},
method: Get,
headers: {},
body: None,
},
selection: Named(
SubSelection {
selections: [
Field(
None,
WithRange {
node: Field(
"id",
),
range: Some(
0..2,
),
},
None,
),
Field(
None,
WithRange {
node: Field(
"id2",
),
range: Some(
3..6,
),
},
None,
),
Field(
None,
WithRange {
node: Field(
"accessibleByUnselected",
),
range: Some(
7..29,
),
},
None,
),
],
range: Some(
0..29,
),
},
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,26 +43,30 @@ scalar join__DirectiveArguments
enum join__Graph {
ONE_QUERY_T2_0 @join__graph(name: "one_Query_t2_0", url: "none")
ONE_QUERY_T_0 @join__graph(name: "one_Query_t_0", url: "none")
ONE_QUERY_UNSELECTED_0 @join__graph(name: "one_Query_unselected_0", url: "none")
ONE_T_R1_0 @join__graph(name: "one_T_r1_0", url: "none")
ONE_T_R2_0 @join__graph(name: "one_T_r2_0", url: "none")
ONE_T_R3_0 @join__graph(name: "one_T_r3_0", url: "none")
ONE_T_R4_0 @join__graph(name: "one_T_r4_0", url: "none")
ONE_T_R5_0 @join__graph(name: "one_T_r5_0", url: "none")
}

type T @join__type(graph: ONE_QUERY_T2_0, key: "id id2") @join__type(graph: ONE_QUERY_T_0, key: "id") @join__type(graph: ONE_T_R1_0, key: "id") @join__type(graph: ONE_T_R2_0, key: "id id2") @join__type(graph: ONE_T_R3_0, key: "id id2") @join__type(graph: ONE_T_R4_0, key: "id") @join__type(graph: ONE_T_R5_0, key: "id id2") {
id: ID! @join__field(graph: ONE_QUERY_T2_0) @join__field(graph: ONE_QUERY_T_0) @join__field(graph: ONE_T_R1_0) @join__field(graph: ONE_T_R2_0) @join__field(graph: ONE_T_R3_0) @join__field(graph: ONE_T_R4_0) @join__field(graph: ONE_T_R5_0)
id2: ID! @join__field(graph: ONE_QUERY_T2_0) @join__field(graph: ONE_QUERY_T_0) @join__field(graph: ONE_T_R2_0) @join__field(graph: ONE_T_R3_0) @join__field(graph: ONE_T_R5_0)
type T @join__type(graph: ONE_QUERY_T2_0, key: "id id2") @join__type(graph: ONE_QUERY_T_0, key: "id") @join__type(graph: ONE_QUERY_UNSELECTED_0, key: "unselected") @join__type(graph: ONE_T_R1_0, key: "id") @join__type(graph: ONE_T_R2_0, key: "id id2") @join__type(graph: ONE_T_R3_0, key: "id id2") @join__type(graph: ONE_T_R4_0, key: "id") @join__type(graph: ONE_T_R5_0, key: "id id2") {
id: ID! @join__field(graph: ONE_QUERY_T2_0) @join__field(graph: ONE_QUERY_T_0) @join__field(graph: ONE_QUERY_UNSELECTED_0) @join__field(graph: ONE_T_R1_0) @join__field(graph: ONE_T_R2_0) @join__field(graph: ONE_T_R3_0) @join__field(graph: ONE_T_R4_0) @join__field(graph: ONE_T_R5_0)
id2: ID! @join__field(graph: ONE_QUERY_T2_0) @join__field(graph: ONE_QUERY_T_0) @join__field(graph: ONE_QUERY_UNSELECTED_0) @join__field(graph: ONE_T_R2_0) @join__field(graph: ONE_T_R3_0) @join__field(graph: ONE_T_R5_0)
unselected: ID! @join__field(graph: ONE_QUERY_T2_0) @join__field(graph: ONE_QUERY_T_0) @join__field(graph: ONE_QUERY_UNSELECTED_0)
accessibleByUnselected: ID! @join__field(graph: ONE_QUERY_UNSELECTED_0)
r1: R @join__field(graph: ONE_T_R1_0)
r2: R @join__field(graph: ONE_T_R2_0)
r3: R @join__field(graph: ONE_T_R3_0)
r4: R @join__field(graph: ONE_T_R4_0)
r5: R @join__field(graph: ONE_T_R5_0)
}

type Query @join__type(graph: ONE_QUERY_T2_0) @join__type(graph: ONE_QUERY_T_0) @join__type(graph: ONE_T_R1_0) @join__type(graph: ONE_T_R2_0) @join__type(graph: ONE_T_R3_0) @join__type(graph: ONE_T_R4_0) @join__type(graph: ONE_T_R5_0) {
type Query @join__type(graph: ONE_QUERY_T2_0) @join__type(graph: ONE_QUERY_T_0) @join__type(graph: ONE_QUERY_UNSELECTED_0) @join__type(graph: ONE_T_R1_0) @join__type(graph: ONE_T_R2_0) @join__type(graph: ONE_T_R3_0) @join__type(graph: ONE_T_R4_0) @join__type(graph: ONE_T_R5_0) {
t2(id: ID!, id2: ID!): T @join__field(graph: ONE_QUERY_T2_0)
t(id: ID!): T @join__field(graph: ONE_QUERY_T_0)
unselected(unselected: ID!): T @join__field(graph: ONE_QUERY_UNSELECTED_0)
_: ID @inaccessible @join__field(graph: ONE_T_R1_0) @join__field(graph: ONE_T_R2_0) @join__field(graph: ONE_T_R3_0) @join__field(graph: ONE_T_R4_0) @join__field(graph: ONE_T_R5_0)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ directive @defer(label: String, if: Boolean! = true) on FRAGMENT_SPREAD | INLINE
type Query {
t(id: ID!): T
t2(id: ID!, id2: ID!): T
" Uses the `unselected` field as a key, but doesn't select it "
unselected(unselected: ID!): T
}

type R {
Expand All @@ -18,6 +20,8 @@ type R {
type T {
id: ID!
id2: ID!
unselected: ID!
accessibleByUnselected: ID!
r1: R
r2: R
r3: R
Expand Down

0 comments on commit 7ed3101

Please sign in to comment.