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
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