Skip to content

Commit

Permalink
Merge branch 'main' into feat/discriminator-alternatives
Browse files Browse the repository at this point in the history
  • Loading branch information
karatakis authored Oct 12, 2024
2 parents 20e4d24 + 1679aea commit 7ffa0ad
Show file tree
Hide file tree
Showing 7 changed files with 180 additions and 81 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/core/http/query_encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ pub fn convert_value(value: &async_graphql::Value) -> Option<String> {
async_graphql::Value::String(s) => Some(s.to_string()),
async_graphql::Value::Number(n) => Some(n.to_string()),
async_graphql::Value::Boolean(b) => Some(b.to_string()),
async_graphql::Value::Enum(e) => Some(e.to_string()),
_ => None,
}
}
Expand Down
158 changes: 79 additions & 79 deletions tailcall-cloudflare/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions tests/core/snapshots/test-enum-as-argument.md_0.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
source: tests/core/spec.rs
expression: response
---
{
"status": 200,
"headers": {
"content-type": "application/json"
},
"body": {
"data": {
"user": {
"name": "Json Schema"
}
}
}
}
21 changes: 21 additions & 0 deletions tests/core/snapshots/test-enum-as-argument.md_client.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
source: tests/core/spec.rs
expression: formatted
---
type Query {
user(id: Int!, test: Test): User
}

enum Test {
A
B
}

type User {
id: Int!
name: String!
}

schema {
query: Query
}
Loading

0 comments on commit 7ffa0ad

Please sign in to comment.