Simple test of Grafbase on Deno. This repo only contains the barebone engine with @graphql
& @openapi
directives (no auth, caching, @model
, etc.)
Structure:
- The
app
crate generates the actual wasm published on Deno. - The
parser
crate generates a JSON blob used by the engine as its configuration from the a schema file.
Setup:
- Use the nix flake / install
deno
, rustup andcargo-make
. cargo make install
to add wasm32 target & install deno deployctlcargo make deploy
will:- parse
schema.graphql
- build wasm app for that schema
- deploy it to Deno (requires
DENO_PROJECT
&DENO_DEPLOY_TOKEN
)
- parse