![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
graphql-resolvers
Advanced tools
Resolver composition library for GraphQL
This library consists of simple but well tested helper functions for combining other functions into more specialized ones.
This package is available on npm as: graphql-resolvers
npm install graphql-resolvers
You should consider using yarn, though.
Many times we end-up repeating lots of logic on our resolvers. Access control, for instance, is something that can be done in the resolver level but just tends to end up with repeated code, even when creating services for such a task. This package aims to make it easier to build smart resolvers with logic being reusable and split in small pieces. Think recompose, but for GraphQL resolvers.
Besides being inspired by some functional libraries out there, this project has some goals in common with other projects:
While graphql-resolvers
follows the functional paradigm, apollo-resolvers
project solves some problems using an opinionated and OOP approach. Furthermore, the second also solves other problems which graphql-resolvers
does not intend to work on, such as solving circular references on the resolver's context.
At first, my idea was to incorporate the combineResolvers
method into the wider project graphql-tools
. That may yet happen some day, but I think people my not want to install the whole graphql-tools
project when wanting this simple package's helper on their projects. Also, combineResolvers
should work pretty fine with resolvers binded into graphql/types
too.
FAQs
Resolver composition library for GraphQL.
The npm package graphql-resolvers receives a total of 4,450 weekly downloads. As such, graphql-resolvers popularity was classified as popular.
We found that graphql-resolvers demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.