JSPM

graphql-tools-type-email

2.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q17992F
  • License MIT

Email scalar type for graphql-tools

Package Exports

  • graphql-tools-type-email

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (graphql-tools-type-email) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

graphql-tools-type-email

Build Status Coverage Status

Email scalar type for graphql-tools

Usage

import { makeExecutableSchema } from 'graphql-tools'
import Email from 'graphql-tools-type-email'

let typeDefs = [`
scalar Email
type Query {
  value(email: Email): Email
}`
]
let resolvers = {
  Email,
  Query: {
    value: (root, { email }) => email
  }
}
let schema = makeExecutableSchema({ typeDefs, resolvers })

export default schema