https://github.com/up9cloud/graphql-tools-type-uint
UInt (Unsigned int) scalar type for [graphql-tools](https://github.com/apollographql/graphql-tools)
https://github.com/up9cloud/graphql-tools-type-uint
Last synced: 5 months ago
JSON representation
UInt (Unsigned int) scalar type for [graphql-tools](https://github.com/apollographql/graphql-tools)
- Host: GitHub
- URL: https://github.com/up9cloud/graphql-tools-type-uint
- Owner: up9cloud
- License: mit
- Created: 2018-03-31T08:47:14.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-08-02T11:19:07.000Z (almost 5 years ago)
- Last Synced: 2025-09-20T17:27:44.713Z (9 months ago)
- Language: JavaScript
- Size: 18.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# graphql-tools-type-uint
[](https://travis-ci.org/up9cloud/graphql-tools-type-uint)
[](https://coveralls.io/github/up9cloud/graphql-tools-type-uint?branch=master)
UInt (unsigned int) scalar type for [graphql-tools](https://github.com/apollographql/graphql-tools)
## Usage
```js
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
```