Skip to content

Commit ed2ad05

Browse files
committed
Bump 1.0.2
1 parent 00c5fe2 commit ed2ad05

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## master
22

3+
## 1.0.2 (July 18, 2016)
4+
* HotFix for connection resolver
5+
36
## 1.0.1 (July 18, 2016)
47
* Fix `peerDependencies`
58
* Update `flow` till 0.29

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "graphql-compose-mongoose",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Plugin for `graphql-compose` which derive a graphql type from a mongoose model.",
55
"files": [
66
"es",

src/composeWithMongoose.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ export function createResolvers(
125125
}
126126
});
127127

128-
if ((!opts.hasOwnProperty('connection') || opts.connection !== false) && opts.connection) {
129-
prepareConnectionResolver(typeComposer, opts.connection);
128+
if (!opts.hasOwnProperty('connection') || opts.connection !== false) {
129+
prepareConnectionResolver(typeComposer, opts.connection ? opts.connection : {});
130130
}
131131
}
132132

0 commit comments

Comments
 (0)