Skip to content

Commit

Permalink
update ndc-spec dep to b38ee2d
Browse files Browse the repository at this point in the history
  • Loading branch information
paritosh-08 committed Nov 3, 2023
1 parent f2a2a75 commit f4c4fa8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 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.

4 changes: 2 additions & 2 deletions rust-connector-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ path = "bin/main.rs"

[dependencies]
gdc_rust_types = { git = "https://github.com/hasura/gdc_rust_types.git", rev = "bc57c40" }
ndc-client = { git = "http://github.com/hasura/ndc-spec.git", tag = "v0.1.0-rc.9" }
ndc-test = { git = "http://github.com/hasura/ndc-spec.git", tag = "v0.1.0-rc.9" }
ndc-client = { git = "http://github.com/hasura/ndc-spec.git", ref = "b38ee2d" }
ndc-test = { git = "http://github.com/hasura/ndc-spec.git", ref = "b38ee2d" }

async-trait = "^0.1.74"
axum = "^0.6.20"
Expand Down
8 changes: 4 additions & 4 deletions rust-connector-sdk/src/default_main/v2_compat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ pub async fn get_capabilities<C: Connector>(
}),
data_schema: None,
datasets: None,
explain: v3_capabilities.capabilities.explain.to_owned(),
explain: v3_capabilities.capabilities.explain.to_owned().map(|v| serde_json::to_value(v).ok()).flatten(),
interpolated_queries: None,
licensing: None,
metrics: None,
Expand All @@ -127,18 +127,18 @@ pub async fn get_capabilities<C: Connector>(
atomicity_support_level: None,
delete: None,
insert: None,
returning: capabilities.returning.to_owned(),
returning: capabilities.returning.to_owned().map(|v| serde_json::to_value(v).ok()).flatten(),
update: None,
}),
queries: v3_capabilities
.capabilities
.query
.as_ref()
.map(|capabilities| QueryCapabilities {
foreach: capabilities.foreach.to_owned(),
foreach: capabilities.foreach.to_owned().map(|v| serde_json::to_value(v).ok()).flatten(),
}),
raw: None,
relationships: v3_capabilities.capabilities.relationships.to_owned(),
relationships: v3_capabilities.capabilities.relationships.to_owned().map(|v| serde_json::to_value(v).ok()).flatten(),
scalar_types: Some(scalar_types),
subscriptions: None,
user_defined_functions: None,
Expand Down

0 comments on commit f4c4fa8

Please sign in to comment.