graphql-scalar-objectid
GraphQLObjectId - GraphQL scalar for mongodb ObjectId
Last updated 7 months ago by isayme .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install graphql-scalar-objectid 
SYNC missed versions from official npm registry.

GraphQLObjectId

Build Status Coverage Status npm

GraphQL scalar type for mongodb ObjectId.

Example

const { GraphQLObjectType, GraphQLString } = require('graphql')
const GraphQLObjectId = require('graphql-scalar-objectid')

const UserType = new GraphQLObjectType({
  name: 'User',
  fields: {
    _id: {
      type: GraphQLObjectId
    },
    name: {
      type: GraphQLString
    }
  }
})

Current Tags

  • 0.1.2                                ...           latest (7 months ago)

3 Versions

  • 0.1.2                                ...           7 months ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 4
Dependencies (3)
Dev Dependencies (5)

Copyright 2014 - 2016 © taobao.org |