Package Exports
- graphql-tools-type-uuid
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (graphql-tools-type-uuid) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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 schemaMinimum 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