Skip to content

v4.1.0

Compare
Choose a tag to compare
@nodkz nodkz released this 20 Apr 08:29
· 326 commits to master since this release

4.1.0 (2018-04-20)

Features

  • MongoID: allow to override build-in MongoID type (720f0ba)

From new 4.1.0 version you may override build-in MongoID type by your GraphQL class type implementation (related issue #98):

import { schemaComposer } from 'graphql-compose';
import { composeWithMongoose } from 'graphql-compose-mongoose';

schemaComposer.set('MongoID', YOUR_CLASS_TYPE_IMPLEMENTATION);
const UserTC = composeWithMongoose(UserModel, { schemaComposer });