Skip to content

Commit d31c999

Browse files
committed
fix(Dependencies): Fixes due deprecated methods in graphql-compose
1 parent ebbaa88 commit d31c999

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"homepage": "https://github.com/nodkz/graphql-compose-connection",
2626
"peerDependencies": {
2727
"graphql": ">=0.7.1 || >=0.8.0",
28-
"graphql-compose": ">=1.0.0"
28+
"graphql-compose": ">=1.4.0"
2929
},
3030
"devDependencies": {
3131
"babel-cli": "6.16.0",

src/__tests__/composeWithConnection-test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ describe('composeWithRelay', () => {
3434
});
3535

3636
it('should apply first sort ID_ASC by default', async () => {
37-
rootQueryTC.addField('userConnection',
37+
rootQueryTC.setField('userConnection',
3838
userTypeComposer.getResolver('connection').getFieldConfig()
3939
);
4040
const schema = new GraphQLSchema({
@@ -86,7 +86,7 @@ describe('composeWithRelay', () => {
8686
});
8787

8888
it('should able to change `sort` on AGE_ID_DESC', async () => {
89-
rootQueryTC.addField('userConnection',
89+
rootQueryTC.setField('userConnection',
9090
userTypeComposer.getResolver('connection').getFieldConfig()
9191
);
9292
const schema = new GraphQLSchema({
@@ -140,7 +140,7 @@ describe('composeWithRelay', () => {
140140

141141
describe('fragments fields projection of graphql-compose', () => {
142142
it('should return object', async () => {
143-
rootQueryTC.addField('userConnection',
143+
rootQueryTC.setField('userConnection',
144144
userTypeComposer.getResolver('connection').getFieldConfig()
145145
);
146146
const schema = new GraphQLSchema({
@@ -205,7 +205,7 @@ describe('composeWithRelay', () => {
205205
it('should pass `countResolveParams` to top resolverParams', async () => {
206206
let topResolveParams;
207207

208-
rootQueryTC.addField('userConnection',
208+
rootQueryTC.setField('userConnection',
209209
userTypeComposer
210210
.getResolver('connection')
211211
.wrapResolve((next) => (rp) => {
@@ -235,7 +235,7 @@ describe('composeWithRelay', () => {
235235
it('should pass `findManyResolveParams` to top resolverParams', async () => {
236236
let topResolveParams;
237237

238-
rootQueryTC.addField('userConnection',
238+
rootQueryTC.setField('userConnection',
239239
userTypeComposer
240240
.getResolver('connection')
241241
.wrapResolve((next) => (rp) => {

0 commit comments

Comments
 (0)