forked from tailcallhq/tailcall
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: bug with graphql nested queries * fix: linting * fix: linting * avoid unwrapping in the logic * chore(deps): update dependency wrangler to v3.84.0 * chore(deps): update dependency wrangler to v3.84.1 * chore(deps): update rust crate insta to v1.41.1 * chore(deps): update rust crate thiserror to v1.0.66 * fix: query on nodes with the same type * fix: remove the depth dependency --------- Co-authored-by: Sandipsinh Rathod <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- Loading branch information
1 parent
08b55ed
commit ff8d0cf
Showing
11 changed files
with
319 additions
and
108 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -1033,4 +1033,4 @@ Output format for prometheus data | |
enum PrometheusFormat { | ||
text | ||
protobuf | ||
} | ||
} |
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 |
---|---|---|
|
@@ -1813,4 +1813,4 @@ | |
] | ||
} | ||
} | ||
} | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,27 @@ | ||
--- | ||
source: tests/core/spec.rs | ||
expression: response | ||
snapshot_kind: text | ||
--- | ||
{ | ||
"status": 200, | ||
"headers": { | ||
"content-type": "application/json" | ||
}, | ||
"body": { | ||
"data": { | ||
"queryNodeA": { | ||
"name": "nodeA", | ||
"nodeB": { | ||
"name": "nodeB" | ||
}, | ||
"nodeC": { | ||
"name": "nodeC" | ||
}, | ||
"child": { | ||
"name": "nodeA" | ||
} | ||
} | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
tests/core/snapshots/graphql-conformance-019.md_client.snap
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,31 @@ | ||
--- | ||
source: tests/core/spec.rs | ||
expression: formatted | ||
snapshot_kind: text | ||
--- | ||
type NodeA { | ||
child: NodeA | ||
name: String | ||
nodeB: NodeB | ||
nodeC: NodeC | ||
} | ||
|
||
type NodeB { | ||
name: String | ||
nodeA: NodeA | ||
nodeC: NodeC | ||
} | ||
|
||
type NodeC { | ||
name: String | ||
nodeA: NodeA | ||
nodeB: NodeB | ||
} | ||
|
||
type Query { | ||
queryNodeA: NodeA | ||
} | ||
|
||
schema { | ||
query: Query | ||
} |
31 changes: 31 additions & 0 deletions
31
tests/core/snapshots/graphql-conformance-019.md_merged.snap
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,31 @@ | ||
--- | ||
source: tests/core/spec.rs | ||
expression: formatter | ||
snapshot_kind: text | ||
--- | ||
schema @server(hostname: "0.0.0.0", port: 8000) @upstream { | ||
query: Query | ||
} | ||
|
||
type NodeA { | ||
name: String | ||
nodeA: NodeA @modify(name: "child") | ||
nodeB: NodeB | ||
nodeC: NodeC | ||
} | ||
|
||
type NodeB { | ||
name: String | ||
nodeA: NodeA | ||
nodeC: NodeC | ||
} | ||
|
||
type NodeC { | ||
name: String | ||
nodeA: NodeA | ||
nodeB: NodeB | ||
} | ||
|
||
type Query { | ||
queryNodeA: NodeA @graphQL(url: "http://upstream/graphql", name: "nodeA") | ||
} |
Oops, something went wrong.