Skip to content

Commit

Permalink
more minor refactors
Browse files Browse the repository at this point in the history
  • Loading branch information
codingkarthik committed May 2, 2024
1 parent 63ac0c2 commit dc27ba8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions crates/ndc-sqlserver/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,19 +335,18 @@ pub async fn get_schema(

let mut object_types = table_types;

let read_only_native_queries =
get_native_queries_schema(&metadata.native_queries, &mut object_types)?;
let native_queries = get_native_queries_schema(&metadata.native_queries, &mut object_types)?;

let procedure_native_queries = get_native_mutations_schema(
let native_mutations = get_native_mutations_schema(
&metadata.native_mutations,
&mut object_types,
&mut scalar_types,
)?;

let mut collections = tables;
collections.extend(read_only_native_queries);
collections.extend(native_queries);

let procedures = procedure_native_queries;
let procedures = native_mutations;

Ok(models::SchemaResponse {
collections,
Expand Down

0 comments on commit dc27ba8

Please sign in to comment.