Skip to content

Commit 3ebcbb0

Browse files
committed
docs(README): Add FAQ
1 parent 0e51884 commit 3ebcbb0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ FAQ
103103
```js
104104
const UserTC = composeWithMongoose(UserModel);
105105
UserTC.getType(); // returns GraphQLObjectType
106-
UserTC.getInputType(); // return GraphQLInputObjectType, eg. for args
106+
UserTC.getInputType(); // returns GraphQLInputObjectType, eg. for args
107107
UserTC.get('languages').getType(); // get GraphQLObjectType for nested field
108108
UserTC.get('fieldWithNesting.subNesting').getType(); // get GraphQL type of deep nested field
109109
```
@@ -148,6 +148,7 @@ UserTC.addRelation(
148148
age: { $gt: 21 },
149149
gender: source.gender,
150150
}),
151+
limit: 10,
151152
},
152153
projection: { friendsIds: 1, gender: 1 }, // required fields from source object
153154
})
@@ -290,11 +291,6 @@ Besides standard connection arguments `first`, `last`, `before` and `after`, als
290291

291292
This plugin completely follows to [Relay Cursor Connections Specification](https://facebook.github.io/relay/graphql/connections.htm).
292293

293-
TODO
294-
====
295-
- [ ] for `filter._operators` arg add support for $regexp
296-
297-
[CHANGELOG](https://github.com/nodkz/graphql-compose-mongoose/blob/master/CHANGELOG.md)
298294

299295
License
300296
=======

0 commit comments

Comments
 (0)