graphql-tools-type-uint
v2.0.2
Published
UInt (unsigned int) scalar type for [graphql-tools](https://github.com/apollographql/graphql-tools)
Downloads
588
Maintainers
Readme
graphql-tools-type-uint
UInt (unsigned int) scalar type for graphql-tools
Usage
import { makeExecutableSchema } from 'graphql-tools'
import UInt from 'graphql-tools-type-uint'
let typeDefs = [`
scalar UInt
type Query {
value(v: UInt): UInt
}`
]
let resolvers = {
UInt,
Query: {
value: (root, { v }) => v
}
}
let schema = makeExecutableSchema({ typeDefs, resolvers })
export default schema