Skip to content

Releases: graphql-compose/graphql-compose-mongoose

v1.10.0

22 Nov 09:23
Compare
Choose a tag to compare

1.10.0 (2017-11-22)

Features

  • projection with * key request all fields from database (3b7ac62)

By default graphql-compose-mongoose requests that fields which are listed in the graphql query. So you may want to add some rawData field to your type for debug/administrative purposes with all fields in such way:

UserTC.addFields({
  rawData: {
    type: 'JSON',
    resolve: (source, args, context) => (context.isAdmin() ? source.toJSON() : null),
    projection: { '*': true }, // <-- request all fields from MongoDB, if requested `rawData`
  },
});

v1.9.6

16 Nov 13:45
Compare
Choose a tag to compare

1.9.6 (2017-11-16)

Bug Fixes

  • improve parseValue for MongoID salar type (f589fdc)
  • toMongoDottedObject() now keep bson ObjectId untouched (15b6f46)

v1.9.5

13 Nov 17:11
Compare
Choose a tag to compare

1.9.5 (2017-11-13)

Bug Fixes

  • findByIds: do not call mongoose for empty _ids array (2e26806), closes #74

v1.9.4

04 Nov 10:23
Compare
Choose a tag to compare

1.9.4 (2017-11-04)

Bug Fixes

  • return back node 4 support (it's still in LTS) (4a854d2)

v1.9.3

01 Nov 10:49
Compare
Choose a tag to compare

1.9.3 (2017-11-01)

Bug Fixes

  • Flowtype: make strict type checks (4faad5d)

v1.9.2

02 Oct 10:13
Compare
Choose a tag to compare

1.9.2 (2017-10-02)

Bug Fixes

  • If field _id present in OutputType then make it NonNull (7d90ea0)

v1.9.1

30 Sep 14:18
Compare
Choose a tag to compare

1.9.1 (2017-09-30)

Bug Fixes

  • package: optionalDependencies should use >= version checks (9ed1b6c)

v1.9.0

07 Sep 08:44
Compare
Choose a tag to compare

1.9.0 (2017-09-07)

Features

  • Migrate on graphql-compose 2.9.0 (01d329c)

Notice for Flowtype users:
If you got Flowtype errors like has no named export MongooseModel please put in <APP>/flow-typed/ directory following file mongoose_v4.x.x.js. Or wait until flow-typed/flow-typed#1231 will be merged, after that you need to install fresh declarations via terminal command flow-typed install.

v1.8.2

04 Sep 08:56
Compare
Choose a tag to compare

1.8.2 (2017-09-04)

Bug Fixes

  • Support builtin js objects in dotted notation (4abf247)

v1.8.1

28 Aug 10:17
Compare
Choose a tag to compare

1.8.1 (2017-08-28)

Bug Fixes

  • Flow: Relax flowtype defs for upcoming mongoose declarations. (28d4e8d)

Right now I'm trying to cover mongoose models by Flowtype. Some details can be found on these screenshots: https://twitter.com/nodkz/status/901183624950710272