All Projects → maticzav → graphql-middleware-forward-binding

maticzav / graphql-middleware-forward-binding

Licence: other
GraphQL Binding forwardTo plugin for GraphQL Middleware

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to graphql-middleware-forward-binding

fullstack-ts-boilerplate
Full-stack boilerplate in TS using modern technology
Stars: ✭ 25 (+4.17%)
Mutual labels:  prisma
prismaliser
Visualise your Prisma schema!
Stars: ✭ 230 (+858.33%)
Mutual labels:  prisma
bot
🎲 A general purpose utility bot, with an economy, games, and lots of other features.
Stars: ✭ 95 (+295.83%)
Mutual labels:  prisma
graphql-cli-generate-fragments
Generate Fragments for Graphql Schemas
Stars: ✭ 43 (+79.17%)
Mutual labels:  prisma
blitz
⚡️The Fullstack React Framework — built on Next.js
Stars: ✭ 11,558 (+48058.33%)
Mutual labels:  prisma
peppermint
An open source ticket management & help desk solution. A freshdesk alternative
Stars: ✭ 367 (+1429.17%)
Mutual labels:  prisma
gondor
Nestjs Framework, Prisma database layer w/ Angular and Apollo.
Stars: ✭ 14 (-41.67%)
Mutual labels:  prisma
nestjs-prisma-docker
Dockerizing a NestJS app with Prisma and PostgreSQL
Stars: ✭ 42 (+75%)
Mutual labels:  prisma
prisma-erd-generator
Generate an ER Diagram based on your Prisma schema every time you run npx prisma generate
Stars: ✭ 249 (+937.5%)
Mutual labels:  prisma
fastify-prisma
Basic Fastify app using Prisma as an ORM
Stars: ✭ 26 (+8.33%)
Mutual labels:  prisma
prisma-nestjs-graphql
Generate object types, inputs, args, etc. from prisma schema file for usage with @nestjs/graphql module
Stars: ✭ 276 (+1050%)
Mutual labels:  prisma
language-tools
🌐 Prisma Language Tools = Language Server and Prisma's VS Code extension.
Stars: ✭ 159 (+562.5%)
Mutual labels:  prisma
throw-me
A url shortener made with nextjs and postgresql database operated with Prisma
Stars: ✭ 34 (+41.67%)
Mutual labels:  prisma
graphql-to-sql
GraphQL model to SQL
Stars: ✭ 13 (-45.83%)
Mutual labels:  prisma
cadhub
We're out to raise awareness and put CodeCAD on the map. The success of CadHub can be measured by the amount it promotes the use of CodeCAD within the mechanical/manufacturing industry and the strength the CadHub community.
Stars: ✭ 204 (+750%)
Mutual labels:  prisma
prisma-client-py
Prisma Client Python is an auto-generated and fully type-safe database client designed for ease of use
Stars: ✭ 739 (+2979.17%)
Mutual labels:  prisma
cannercms
⚡️[NOT MAINTAINED] Content Management Framework creates custom CMS fast and easy. Support data sources such as Firebase/Firestore, GraphQL and Restful APIs.
Stars: ✭ 2,452 (+10116.67%)
Mutual labels:  prisma
next-prisma
🚀 Static site with Next.js 9.4 and Prisma.
Stars: ✭ 116 (+383.33%)
Mutual labels:  prisma
praxis
Social networking platform built with Next.js, Apollo GraphQL, and Prisma
Stars: ✭ 37 (+54.17%)
Mutual labels:  prisma
nextjs-graphql-adminpanel
Admin panel built with NextJS(Typescript), Material UI, Apollo Client & GraphQL. In the backend, Prisma 2 with Nexus and Mysql is used.
Stars: ✭ 119 (+395.83%)
Mutual labels:  prisma

graphql-middleware-forward-binding

CircleCI npm version

GraphQL Middleware plugin for forwarding request to GraphQL Bindings.

Usage

With GraphQL Yoga and Prisma

import { GraphQLServer } from 'graphql-yoga'
import { forward } from 'graphql-middleware-forward-binding'
import { Prisma } from 'prisma-binding'

const bindingForwardMiddleware = forward('Query', 'Mutation.createBasket')('db')

const server = GraphQLServer({
  typeDefs: 'generated-schema.graphql',
  resolvers: {},
  middlewares: [bindingForwardMiddleware],
  context: req => ({
    ...req,
    db: new Prisma({
      endpoint: 'https://eu1.prisma.sh/public-saberbow/prisma-yoga/dev',
      debug: true,
    }),
  }),
})

serve.start(() => `Server running on http://localhost:4000`)

API

function forward(types: string[])(database: string): IMiddleware

License

MIT @ Matic Zavadlal

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