graphql-tools-type-uint

2.0.2 • Public • Published

graphql-tools-type-uint

Build Status Coverage Status

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

Dependents (0)

Package Sidebar

Install

npm i graphql-tools-type-uint

Weekly Downloads

176

Version

2.0.2

License

MIT

Unpacked Size

7.96 kB

Total Files

6

Last publish

Collaborators

  • up9cloud