All Projects → svelte-add → graphql-server

svelte-add / graphql-server

Licence: MIT license
(out of date) A command to add a GraphQL server to your Svelte project

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to graphql-server

tailwindcss
Add Tailwind CSS to your Svelte project
Stars: ✭ 583 (+1780.65%)
Mutual labels:  sveltekit, svelte-add
postcss
Add PostCSS to your Svelte project
Stars: ✭ 37 (+19.35%)
Mutual labels:  sveltekit, svelte-add
Prisma Tools
Prisma tools to help you generate CRUD system for GraphQL servers
Stars: ✭ 237 (+664.52%)
Mutual labels:  graphql-server
sveltekit-starter
Sveltekit starter project created with sveltekit, typescript, tailwindcss, postcss, husky, and storybook. The project has the structure set up for the scaleable web application.
Stars: ✭ 482 (+1454.84%)
Mutual labels:  sveltekit
corejam
A scaffolding for building progressive GraphQL powered jamstack applications.
Stars: ✭ 24 (-22.58%)
Mutual labels:  graphql-server
Graphql Resolve Batch
A GraphQL batching model which groups execution by GraphQL fields.
Stars: ✭ 251 (+709.68%)
Mutual labels:  graphql-server
graphql-directive-rest
GraphQL directive for easy integration with REST API
Stars: ✭ 39 (+25.81%)
Mutual labels:  graphql-server
Graphql Go Example
Example use of https://github.com/graph-gophers/graphql-go
Stars: ✭ 222 (+616.13%)
Mutual labels:  graphql-server
kanji
A strongly typed GraphQL API framework
Stars: ✭ 12 (-61.29%)
Mutual labels:  graphql-server
graphql-docker-api
A GraphQL Server for the Docker API
Stars: ✭ 57 (+83.87%)
Mutual labels:  graphql-server
svelte-add-jest
SvelteKit adder for Jest unit testing
Stars: ✭ 31 (+0%)
Mutual labels:  sveltekit
graphene-sqlalchemy-filter
Filters for Graphene SQLAlchemy integration
Stars: ✭ 117 (+277.42%)
Mutual labels:  graphql-server
DotNetGraphQL
A sample demonstrating how to create a GraphQL Backend in .NET and consume it from a .NET mobile app created using Xamarin
Stars: ✭ 78 (+151.61%)
Mutual labels:  graphql-server
svelte-slate
slate svelte view layer
Stars: ✭ 43 (+38.71%)
Mutual labels:  sveltekit
Graphqlize
A Clojure & JVM library for developing GraphQL API instantly from Postgres and MySQL databases
Stars: ✭ 240 (+674.19%)
Mutual labels:  graphql-server
server
Core server in the Alkemio platform, offering a GraphQL api for interacting with the logical domain model.
Stars: ✭ 20 (-35.48%)
Mutual labels:  graphql-server
Graphql Ruby
GraphQL Ruby example for How To GraphQL
Stars: ✭ 231 (+645.16%)
Mutual labels:  graphql-server
zero-to-graphql-using-elixir
The purpose of this example is to provide details as to how one would go about using GraphQL with the Elixir Language.
Stars: ✭ 20 (-35.48%)
Mutual labels:  graphql-server
graphql-ufc-api
GraphQL server for UFC's public API
Stars: ✭ 26 (-16.13%)
Mutual labels:  graphql-server
graphql-server-typescript
GraphQL + MongoDB express server with JWT authorization (in Typescript!)
Stars: ✭ 48 (+54.84%)
Mutual labels:  graphql-server

🕸 Add GraphQL to Svelte

What is this?

This is an experimental command to run to add a GraphQL server (powered by graphql-helix) to your SvelteKit project.

🛠 Usage

You 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.

npm init svelte@next

Once that is set up, run this command in your project directory to set up GraphQL:

npx svelte-add graphql-server

After the preset runs,

  • 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.

  • You can query your API (with POST requests) at the /graphql endpoint.

  • You can visit GraphiQL in the browser at the /graphql endpoint.

  • 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.

  • The / route (in your src/routes/index.svelte file) will show an example of how to use your GraphQL API in preload.

  • You cannot use GraphQL subscriptions.

  • You can apply another Svelte Adder to your project for more functionality.

😵 Help! I have a question

Create an issue and I'll try to help.

😡 Fix! There is something that needs improvement

Create an issue or pull request and I'll try to fix.

These 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.

📄 License

MIT


Repository preview image generated with GitHub Social Preview

This README was generated with ❤️ by readme-md-generator

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].