All Projects → deno-libs → Gql

deno-libs / Gql

Licence: mit
☁ Universal GraphQL HTTP middleware for Deno

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Gql

Lighthouse Utils
An add-on to Lighthouse to auto-generate CRUD actions from types https://github.com/nuwave/lighthouse
Stars: ✭ 26 (-38.1%)
Mutual labels:  graphql, graphql-server
Eschool
eSchool Microservice based Solution
Stars: ✭ 29 (-30.95%)
Mutual labels:  graphql, graphql-server
Graphql Spqr
Java 8+ API for rapid development of GraphQL services
Stars: ✭ 843 (+1907.14%)
Mutual labels:  graphql, graphql-server
Strawberry
A new GraphQL library for Python 🍓
Stars: ✭ 891 (+2021.43%)
Mutual labels:  graphql, graphql-server
Graphql
Haskell GraphQL implementation
Stars: ✭ 36 (-14.29%)
Mutual labels:  graphql, graphql-server
Graphql Server Demo
GraphQL server demo with nodejs
Stars: ✭ 19 (-54.76%)
Mutual labels:  graphql, graphql-server
Graphql Kotlin
Libraries for running GraphQL in Kotlin
Stars: ✭ 1,030 (+2352.38%)
Mutual labels:  graphql, graphql-server
Graphql Yoga
🧘 Fully-featured GraphQL Server with focus on easy setup, performance & great developer experience
Stars: ✭ 6,573 (+15550%)
Mutual labels:  graphql, graphql-server
Orionjs
A new framework for serverside GraphQL apps
Stars: ✭ 35 (-16.67%)
Mutual labels:  graphql, graphql-server
Graphql Modules
Enterprise Grade Tooling For Your GraphQL Server
Stars: ✭ 962 (+2190.48%)
Mutual labels:  graphql, graphql-server
Graph Node
Graph Node indexes data from blockchains such as Ethereum and serves it over GraphQL
Stars: ✭ 884 (+2004.76%)
Mutual labels:  graphql, graphql-server
Ultimate Backend
Multi tenant SaaS starter kit with cqrs graphql microservice architecture, apollo federation, event source and authentication
Stars: ✭ 978 (+2228.57%)
Mutual labels:  graphql, graphql-server
Api Platform
Create REST and GraphQL APIs, scaffold Jamstack webapps, stream changes in real-time.
Stars: ✭ 7,144 (+16909.52%)
Mutual labels:  graphql, graphql-server
Graphql Moltin Server
⚛️ GraphQL + Moltin + GraphQL Yoga 🧘
Stars: ✭ 22 (-47.62%)
Mutual labels:  graphql, graphql-server
Graphqlgen
⚙️ Generate type-safe resolvers based upon your GraphQL Schema
Stars: ✭ 796 (+1795.24%)
Mutual labels:  graphql, graphql-server
Turbulette
😴 Turbulette - A batteries-included framework to build high performance, fully async GraphQL APIs
Stars: ✭ 29 (-30.95%)
Mutual labels:  graphql, graphql-server
Graphql Prisma Typescript
🏡 GraphQL server reference implementation (Airbnb clone) in Typescript using Prisma & graphql-yoga
Stars: ✭ 723 (+1621.43%)
Mutual labels:  graphql, graphql-server
Node Graphql Server
Boilerplate code for scalable, production-ready GraphQL servers
Stars: ✭ 761 (+1711.9%)
Mutual labels:  graphql, graphql-server
Fullstack Graphql
🌈 Simple Fullstack GraphQL Application. API built with Express + GraphQL + Sequelize (supports MySQL, Postgres, Sqlite and MSSQL). WebApp built with React + Redux to access the API. Written in ES6 using Babel + Webpack.
Stars: ✭ 955 (+2173.81%)
Mutual labels:  graphql, graphql-server
Graphqldockerproxy
A generic Graphql API for Docker and Kubernetes
Stars: ✭ 38 (-9.52%)
Mutual labels:  graphql, graphql-server

gql

GitHub release (latest by date) GitHub Workflow Status Codecov

Universal GraphQL HTTP middleware for Deno.

Examples

Vanilla

import { serve } from 'https://deno.land/[email protected]/http/server.ts'
import { GraphQLHTTP } from 'https://deno.land/x/gql/mod.ts'
import { GraphQLSchema, GraphQLString, GraphQLObjectType } from 'https://deno.land/x/[email protected]/mod.ts'

const schema = new GraphQLSchema({
  query: new GraphQLObjectType({
    name: 'Query',
    fields: {
      hello: {
        type: GraphQLString,
        resolve() {
          return 'Hello World!'
        }
      }
    }
  })
})

for await (const req of serve({ port: 3000 })) {
  await GraphQLHTTP({ schema })(req)
}

tinyhttp

import { App } from 'https://deno.land/x/tinyhttp/mod.ts'
import { GraphQLHTTP } from 'https://deno.land/x/gql/mod.ts'
import { GraphQLSchema, GraphQLString, GraphQLObjectType } from 'https://deno.land/x/[email protected]/mod.ts'

const schema = new GraphQLSchema({
  query: new GraphQLObjectType({
    name: 'Query',
    fields: {
      hello: {
        type: GraphQLString,
        resolve() {
          return 'Hello World!'
        }
      }
    }
  })
})

const app = new App()

app.post('/graphql', GraphQLHTTP({ schema }))

app.listen(3000, () => console.log(`☁  Started on http://localhost:3000`))

Then run:

$ curl -X POST localhost:3000/graphql -d '{ "query": "{ hello }" }'
{
  "data": {
    "hello": "Hello World!"
  }
}

Donate

PayPal ko-fi Qiwi Yandex Money Bitcoin Ethereu,

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