JSPM

graphql-tools-type-uuid

2.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 77
  • Score
    100M100P100Q74427F
  • License MIT

UUID scalar type for graphql-tools

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

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