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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.2
    166
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.2
    166
  • 2.0.1
    0
  • 2.0.0
    0
  • 1.0.0
    10

Package Sidebar

Install

npm i graphql-tools-type-uint

Weekly Downloads

113

Version

2.0.2

License

MIT

Unpacked Size

7.96 kB

Total Files

6

Last publish

Collaborators

  • up9cloud