3.2.0 • Published 4 months ago

@parameter1/mongodb-graphql-types v3.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

MongoDB GraphQL Types

MongoDB GraphQL scalar types, such as ObjectId

Installation

yarn add @parameter1/mongodb-graphql-types

Usage

Definitions with .graphql file

scalar ObjectID

type SomeType {
  _id: ObjectID!
}

Definitions with graphql-tag

import gql from 'graphql-tag';

export default gql`

scalar ObjectID

type SomeType {
  _id: ObjectID!
}

`;

Resolvers

import { GraphQLObjectId } from '@parameter1/mongodb-grapql-types';

export default {
  ObjectID: GraphQLObjectId,
}
3.2.0

4 months ago

3.1.0

8 months ago

3.0.0

8 months ago

2.3.0

9 months ago

2.2.0

11 months ago

2.0.2

1 year ago

2.1.0

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

2 years ago