This is an experimental project to run to add a GraphQL server (powered by apollo-server-lambda
) to your SvelteKit project (works for both typescript & javascript).
You must start with a fresh copy of the official SvelteKit template, which is currently created by running this command.
npm init svelte@next
Once that is set up, run this command in your project directory to set up GraphQL:
npx apply vibhanshu909/graphql-server --no-ssh
After the preset runs,
-
You can visit GraphQL Playground in the browser at the
/graphql
endpoint. -
You can query your API (with POST requests) at the
/graphql
endpoint.
Create an issue and I'll try to help.
Create an issue or pull request and I'll try to fix it.
MIT