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
Minimum amount of module files
$ tree ./node_modules/graphql-tools-type-email
./node_modules/graphql-tools-type-email
├── README.md
├── dist
│ └── index.js
└── package.json
1 directory, 3 files