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

    Install

    npm i graphql-tools-type-uuid

    DownloadsWeekly Downloads

    949

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    7.66 kB

    Total Files

    5

    Last publish

    Collaborators

    • up9cloud