Skip to content

up9cloud/graphql-tools-type-uint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

UInt (Unsigned int) scalar type for [graphql-tools](https://github.com/apollographql/graphql-tools)

Resources

License

Stars

Watchers

Forks

Packages

No packages published