From 5f0812c85013e50d0f108fe0dbe9e51b042e21e0 Mon Sep 17 00:00:00 2001 From: Lyndon Maydwell Date: Fri, 29 Sep 2023 15:58:46 +1000 Subject: [PATCH] Porting the TS connector to a pure Deno runtime --- .gitignore | 3 +++ main.ts | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 main.ts diff --git a/.gitignore b/.gitignore index 428674ea..b59385ac 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,6 @@ # direnv /.direnv + +# vscode +.vscode diff --git a/main.ts b/main.ts new file mode 100644 index 00000000..fe73b265 --- /dev/null +++ b/main.ts @@ -0,0 +1,23 @@ + +import {start} from 'https://raw.githubusercontent.com/hasura/ndc-sdk-typescript/main/src/server.ts'; +import {Connector} from 'https://raw.githubusercontent.com/hasura/ndc-sdk-typescript/main/src/connector.ts'; + +console.log('hello world'); + +/** + * TODO: + * + * Create PR + * Share SDK issues with Benoit + * Resolve import errors for Deno (via import map?) for github.com/hasura/ndc-sdk-typescript + * Convert server.ts to connector protocol + * Remove rust harness + * Update docker to leverage deno implementation + * Do start-time inference on functions + * Have schema cache respecting flag --schema: /schema.json - Creates if missing, uses if present + * Manage src locations better + * CMD parsing library + * Subprocess library + * File-reading library + * + */ \ No newline at end of file