Nervously Practice Multithreading

    graphql-yup-resolver

    1.0.4 • Public • Published

    graphql-yup-resolver

    npm node-current Build Status Coverage Status

    yeah graphql have scalars, but? but?

    Installation

    straight forward:

    Make sure you install yup first:

    yarn add yup

    Then install this lib:

    yarn add graphql-yup-resolver

    Usage Example

    /* your-resolver.js */
     
    const createYupResolver = require('graphql-yup-resolver');
     
    const fn = createYupResolver({
     
      // graphql args
      args: {
        name: yup.string().required().min(3),
      },
     
      // actual resolver, protected by yup
      resolver: (_, { name }) => `hello ${name}!`,
     
    });
     

    LICENSE

    Keywords

    none

    Install

    npm i graphql-yup-resolver

    DownloadsWeekly Downloads

    15

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    2.65 kB

    Total Files

    3

    Last publish

    Collaborators

    • xprycker