Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating the TS SDK to 1.2.4 and fixing incorrectly required insert_schema field in mutations #78

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions src/connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { FunctionPositions, ProgramInfo, programInfo, Struct } from "./infer.ts"
import { resolve } from "https://deno.land/[email protected]/path/mod.ts";
import { JSONSchemaObject } from "npm:@json-schema-tools/meta-schema";

import * as sdk from 'npm:@hasura/[email protected]';
export * as sdk from 'npm:@hasura/[email protected]';
import sdk from 'npm:@hasura/[email protected]';

/**
* Implementation of the Connector interface for Deno connector.
Expand Down Expand Up @@ -59,9 +58,7 @@ export const CONFIGURATION_SCHEMA: JSONSchemaObject = {
export const CAPABILITIES_RESPONSE: sdk.CapabilitiesResponse = {
versions: "^0.1.0",
capabilities: {
query: { },
mutations: {
returning: {}
query: {
},
},
};
Expand Down Expand Up @@ -236,10 +233,6 @@ export const connector: sdk.Connector<Configuration, Configuration, State> = {
return CAPABILITIES_RESPONSE;
},

get_configuration_schema(): JSONSchemaObject {
return CONFIGURATION_SCHEMA;
},

make_empty_configuration(): Configuration {
const conf: Configuration = {
functions: './functions/index.ts',
Expand Down
4 changes: 2 additions & 2 deletions src/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

// NOTE: Ensure that sdk matches version in connector.ts
import * as commander from 'npm:[email protected]';
import * as path from "https://deno.land/[email protected]/path/mod.ts";
import { programInfo } from './infer.ts'
import { connector, sdk } from './connector.ts'
import { connector } from './connector.ts'
import sdk from 'npm:@hasura/[email protected]';

const inferCommand = new commander.Command("infer")
.argument('<path>', 'Typescript source entrypoint')
Expand Down