graphql-tools-type-uuid
v2.0.1
Published
UUID scalar type for graphql-tools
Downloads
647
Maintainers
Readme
graphql-tools-type-uuid
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