graphql-yup-resolver
1.0.4 • Public • Published graphql-yup-resolver

yeah graphql have scalars, but? but?
Installation
straight forward:
Make sure you install yup first:
Then install this lib:
yarn add graphql-yup-resolver
Usage Example
const createYupResolver = require('graphql-yup-resolver');
const fn = createYupResolver({
args: {
name: yup.string().required().min(3),
},
resolver: (_, { name }) => `hello ${name}!`,
});
LICENSE
Keywords
noneInstall
npm i graphql-yup-resolver
Weekly Downloads