Releases: graphql-compose/graphql-compose-mongoose
Releases · graphql-compose/graphql-compose-mongoose
v1.10.0
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
v1.9.5
v1.9.4
v1.9.3
v1.9.2
v1.9.1
v1.9.0
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
v1.8.1
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