graphql-tools-type-uuid

2.0.1 • Public • Published

graphql-tools-type-uuid

Build Status Coverage Status

UUID scalar type for graphql-tools

Usage

import { makeExecutableSchema } from 'graphql-tools'
import UUID from 'graphql-tools-type-uuid'
 
let typeDefs = [`
scalar UUID
type Query {
  value(uuid: UUID): UUID
}`
]
let resolvers = {
  UUID,
  Query: {
    value: (root, { uuid }) => uuid
  }
}
let schema = makeExecutableSchema({ typeDefs, resolvers })
 
export default schema

Minimum amount of module files

$ tree ./node_modules/graphql-tools-type-uuid
./node_modules/graphql-tools-type-uuid
├── README.md
├── dist
│   └── index.js
└── package.json
 
1 directory, 3 files

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.1
    247
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.1
    247
  • 2.0.0
    0
  • 1.0.2
    0
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i graphql-tools-type-uuid

Weekly Downloads

249

Version

2.0.1

License

MIT

Unpacked Size

7.66 kB

Total Files

5

Last publish

Collaborators

  • up9cloud