Skip to content

Commit

Permalink
Fixing implementation error for configuration defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
sordina committed Nov 23, 2023
1 parent 40b4189 commit a86123e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,17 +250,17 @@ export const connector: sdk.Connector<Configuration, Configuration, State> = {

// TODO: https://github.com/hasura/ndc-typescript-deno/issues/27 Make this add in the defaults
update_configuration(configuration: Configuration): Promise<Configuration> {
return Promise.resolve(configuration);
},

validate_raw_configuration(configuration: Configuration): Promise<Configuration> {
const defaults = {
preVendor: true,
}
const response = { ...defaults, ...configuration }
return Promise.resolve(response);
},

validate_raw_configuration(configuration: Configuration): Promise<Configuration> {
return Promise.resolve(configuration);
},

get_schema(config: Configuration): Promise<sdk.SchemaResponse> {
const result = getInfo(config);
return Promise.resolve(result.schema);
Expand Down

0 comments on commit a86123e

Please sign in to comment.