Displaying 1 to 9 from 9 results

type-graphql - Create GraphQL schema and resolvers with TypeScript, using classes and decorators!

  •    TypeScript

We all know that GraphQL is so great and solves many problems that we have with REST API, like overfetching and underfetching. But developing a GraphQL API in Node.js with TypeScript is sometimes a bit of pain. Why? Let's take a look at the steps we usually have to make. The biggest problem is the redundancy in our codebase, which makes it difficult to keep things in sync. To add a new field to our entity, we have to jump through all the files - modify an entity class, the schema, as well as the interface. The same goes with inputs or arguments. It's easy to forget to update one piece or make a mistake with a single type. Also, what if we've made a typo in field name? The rename feature (F2) won't work correctly.

graphql-middleware - Split up your GraphQL resolvers in middleware functions

  •    TypeScript

Split up your GraphQL resolvers in middleware functions. GraphQL Middleware is a schema wrapper which allows you to manage additional functionality across multiple resolvers efficiently.

apollo-resolvers - Expressive and composable resolvers for Apollostack's GraphQL server

  •    Javascript

When standing up a GraphQL backend, one of the first design decisions you will undoubtedly need to make is how you will handle authentication, authorization, and errors. GraphQL resolvers present an entirely new paradigm that existing patterns for RESTful APIs fail to adequately address. Many developers end up writing duplicitous authorization checks in a vast majority of their resolver functions, as well as error handling logic to shield the client from encountering exposed internal errors. The goal of apollo-resolvers is to simplify the developer experience in working with GraphQL by abstracting away many of these decisions into a nice, expressive design pattern. apollo-resolvers provides a pattern for creating resolvers that work, essentially, like reactive middleware. By creating a chain of resolvers to satisfy individual parts of the overall problem, you are able to compose elegant streams that take a GraphQL request and bind it to a model method or some other form of business logic with authorization checks and error handling baked right in.

graphql-middleware - ❄️All in one solution to manage middleware in your GraphQL projects

  •    Javascript

All in one solution to manage middleware in your GraphQL projects. GraphQL Middleware is a schema wrapper which allows you to manage additional functionality across multiple resolvers efficiently.

create-graphql-guru - Command line scaffolding and generator for Graphql Guru

  •    Javascript

You don’t need to install or configure tools like Webpack or Babel. They are preconfigured and hidden so that you can focus on the code. Just create a project, and you’re good to go.

graphql-autharoo - Authorization helpers for graphql resolvers

  •    Javascript

Authorization helpers for graphql resolvers. This library will help you handle contextual authorization needs in your graphql queries, mutations, type and batch resolvers. At its core, it provides multiplexing and filtering capabilities for resolving data based on the request, context, and permissions.

appsync-resolvers-example - Example project for AppSync, GraphQL, and AWS Lambda resolvers using Go.

  •    Go

The Makefile contains all tasks to set up the CloudFormation stack. Feel free to use the code, it's released using the MIT license.

graphback - Graphback - GraphQL backend generator

  •    TypeScript

GraphQL can be hard and intimidating initially. Graphback helps you to kickstart your experience with any existing GraphQL implementation by generating a Node.js server using your data model. Plain and most canonical GraphQL implementation. Generated resolvers will work with plain GraphQL solutions.