Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphql-validation-helper

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-validation-helper

[![Build Status](https://travis-ci.org/beanloop/graphql-validation-helper.svg?branch=master)](https://travis-ci.org/beanloop/graphql-validation-helper) [![npm version](https://badge.fury.io/js/graphql-validation-helper.svg)](https://badge.fury.io/js/graph

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
2
Weekly downloads
 
Created
Source

graphql-validation-helper

Build Status npm version License

Install

yarn add graphql-validation-helper
npm install --save graphql-validation-helper

Usage

validatedMutation('user', gql`
  mutation createUser(
    $firstName: String!
    $lastName: String!
    $displayName: String!
    $email: String!
  ) {
    createUser(
      firstName: $firstName
      lastName: $lastName
      displayName: $displayName
      email: $email
    ) {
      id
      firstName
      lastName
      displayName
      email
    }
  }
`, {
  mapVariables(user) {
    return {...user, displayName: `${user.firstName}${user.lastName}`}
  },
}),

License

graphql-validation-helper is dual-licensed under Apache 2.0 and MIT terms.

FAQs

Package last updated on 29 Jun 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc