graphql-compose-recompose
v0.0.1
Published
## GraphQL Compose Recompose
Downloads
17
Readme
Caution working process...
GraphQL Compose Recompose
This library help your life easier by create composing function that workwith GraphQL compose
Inspire by React utility lib Recompose
Installation
$ npm install graphql-compose graphql graphql-compose-connection graphql-compose-recompose
Example
From
UserTC.addRelation(
'friends',
() => ({
... // Relation arg
})
);
UserTC.addRelation(
'adultFriendsWithSameGender',
() => ({
... // Relation arg
})
);
exports.TC = UserTC
To
const { compose, addRelation } = require('graphql-compose-recompose');
exports.TC = compose(
addRelation(
'friends',
() => ({
... // Relation arg
})
addRelation(
'adultFriendsWithSameGender',
() => ({
... // Relation arg
})
)(UserTC);
API
- TBD
TODO
- [ ] Wraping whole Graphql compose library
- [ ] Add real life example
- [ ] Unit test
- [ ] Type definition
- [ ] Use Commitizen
- [ ] Add CI Build
- [ ] Coverage