{"id":20650988,"url":"https://github.com/svelte-add/graphql-server","last_synced_at":"2025-05-10T10:30:49.576Z","repository":{"id":38403068,"uuid":"315843133","full_name":"svelte-add/graphql-server","owner":"svelte-add","description":"⚠️ MOVED: https://github.com/svelte-add/svelte-add/ ⚠️ (out of date) A command to add a GraphQL server to your Svelte project ","archived":true,"fork":false,"pushed_at":"2022-01-17T00:10:20.000Z","size":96,"stargazers_count":31,"open_issues_count":5,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-30T17:33:59.739Z","etag":null,"topics":["graphql","graphql-helix","graphql-server","svelte","svelte-add","sveltekit"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/svelte-add.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-25T05:58:11.000Z","updated_at":"2024-05-05T07:54:14.000Z","dependencies_parsed_at":"2022-07-12T17:28:47.903Z","dependency_job_id":null,"html_url":"https://github.com/svelte-add/graphql-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svelte-add%2Fgraphql-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svelte-add%2Fgraphql-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svelte-add%2Fgraphql-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/svelte-add%2Fgraphql-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/svelte-add","download_url":"https://codeload.github.com/svelte-add/graphql-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253400935,"owners_count":21902577,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["graphql","graphql-helix","graphql-server","svelte","svelte-add","sveltekit"],"created_at":"2024-11-16T17:24:52.072Z","updated_at":"2025-05-10T10:30:49.335Z","avatar_url":"https://github.com/svelte-add.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e🕸 Add GraphQL to Svelte\u003c/h1\u003e\n\n## ❓ What is this?\nThis is an **experimental** command to run to add a GraphQL server (powered by [`graphql-helix`](https://github.com/contrawork/graphql-helix/)) to your SvelteKit project.\n\n## 🛠 Usage\nYou must start with a fresh copy of the official SvelteKit template, which is currently created by running this command. **You must say yes to TypeScript preprocessing.**\n```sh\nnpm init svelte@next\n```\n\nOnce that is set up, run this command in your project directory to set up GraphQL:\n```sh\nnpx svelte-add graphql-server\n```\n\nAfter the preset runs,\n* You can create a GraphQL schema in `src/graphql/schema.ts` using any library or technique you want. Additionally, you can set the `defaultQuery` that shows up when GraphiQL is loaded in the browser.\n\n* You can query your API (with POST requests) at the `/graphql` endpoint.\n\n* You can visit GraphiQL in the browser at the `/graphql` endpoint.\n\n* You can see an example of how you may set up resolver-level authorization with the `contextFactory` line in `src/routes/graphql.ts` and the `authorization` argument in `src/graphql/schema.ts`.\n\n* The `/` route (in your `src/routes/index.svelte` file) will show an example of how to use your GraphQL API in `preload`.\n\n* You [*cannot* use GraphQL subscriptions](https://github.com/svelte-add/graphql/issues/1).\n\n* You can apply *another* [Svelte Adder](https://github.com/svelte-add/svelte-adders) to your project for more functionality. \n\n## 😵 Help! I have a question\n[Create an issue](https://github.com/svelte-add/graphql/issues/new) and I'll try to help.\n\n## 😡 Fix! There is something that needs improvement\n[Create an issue](https://github.com/svelte-add/graphql/issues/new) or [pull request](https://github.com/svelte-add/graphql/pulls) and I'll try to fix.\n\nThese are new tools, so there are likely to be problems in this project. Thank you for bringing them to my attention or fixing them for me.\n\n## 📄 License\nMIT\n\n---\n\n*Repository preview image generated with [GitHub Social Preview](https://social-preview.pqt.dev/)*\n\n_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvelte-add%2Fgraphql-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsvelte-add%2Fgraphql-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsvelte-add%2Fgraphql-server/lists"}