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/query interface with fragments (#6)
* fix: query interface with fragments * fix: query interface with fragments * fix: no need to box interfaces * fix: no need to box interfaces * fix: integration tests * fix: create interfaces in builder instead * fix: create interfaces in builder instead * fix: remove arc and take it from index * fix: remove duplicate when __typename is requested * chore(deps): update rust crate async-graphql to v7.0.13 (tailcallhq#3241) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update rust crate anyhow to v1.0.95 (tailcallhq#3242) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update rust crate async-trait to v0.1.85 (tailcallhq#3243) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update rust crate chrono to v0.4.39 (tailcallhq#3244) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update rust crate clap to v4.5.26 (tailcallhq#3245) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update rust crate hyper to v0.14.32 (tailcallhq#3246) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update rust crate moka to v0.12.10 (tailcallhq#3247) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update rust crate phonenumber to v0.3.7 (tailcallhq#3252) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update rust crate proc-macro2 to v1.0.93 (tailcallhq#3250) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update rust crate quote to v1.0.38 (tailcallhq#3248) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update rust crate rustls to v0.23.21 (tailcallhq#3249) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update rust crate rustls-pki-types to v1.10.1 (tailcallhq#3251) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update rust crate serde to v1.0.217 (tailcallhq#3253) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update rust crate serde_json to v1.0.135 (tailcallhq#3254) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(deps): update rust crate syn to v2.0.96 (tailcallhq#3255) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update dependency @cloudflare/workers-types to v4.20250109.0 (tailcallhq#3256) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- Loading branch information
1 parent
580002a
commit 9548aca
Showing
11 changed files
with
401 additions
and
182 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
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
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": { | ||
"queryNodeC": [ | ||
{ | ||
"name": "nodeA", | ||
"__typename": "NodeA", | ||
"nodeA_id": "nodeA_id" | ||
}, | ||
{ | ||
"name": "nodeB", | ||
"__typename": "NodeB", | ||
"nodeB_id": "nodeB_id" | ||
} | ||
] | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
tests/core/snapshots/graphql-with-fragments.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,28 @@ | ||
--- | ||
source: tests/core/spec.rs | ||
expression: formatted | ||
snapshot_kind: text | ||
--- | ||
type NodeA implements NodeC { | ||
name: String | ||
nodeA_id: String | ||
} | ||
|
||
type NodeB implements NodeC { | ||
name: String | ||
nodeB_id: String | ||
} | ||
|
||
interface NodeC { | ||
name: String | ||
} | ||
|
||
type Query { | ||
queryNodeA: [NodeA!] | ||
queryNodeB: [NodeB!] | ||
queryNodeC: [NodeC!] | ||
} | ||
|
||
schema { | ||
query: Query | ||
} |
Oops, something went wrong.