@@ -34,7 +34,7 @@ describe('composeWithRelay', () => {
34
34
} ) ;
35
35
36
36
it ( 'should apply first sort ID_ASC by default' , async ( ) => {
37
- rootQueryTC . addField ( 'userConnection' ,
37
+ rootQueryTC . setField ( 'userConnection' ,
38
38
userTypeComposer . getResolver ( 'connection' ) . getFieldConfig ( )
39
39
) ;
40
40
const schema = new GraphQLSchema ( {
@@ -86,7 +86,7 @@ describe('composeWithRelay', () => {
86
86
} ) ;
87
87
88
88
it ( 'should able to change `sort` on AGE_ID_DESC' , async ( ) => {
89
- rootQueryTC . addField ( 'userConnection' ,
89
+ rootQueryTC . setField ( 'userConnection' ,
90
90
userTypeComposer . getResolver ( 'connection' ) . getFieldConfig ( )
91
91
) ;
92
92
const schema = new GraphQLSchema ( {
@@ -140,7 +140,7 @@ describe('composeWithRelay', () => {
140
140
141
141
describe ( 'fragments fields projection of graphql-compose' , ( ) => {
142
142
it ( 'should return object' , async ( ) => {
143
- rootQueryTC . addField ( 'userConnection' ,
143
+ rootQueryTC . setField ( 'userConnection' ,
144
144
userTypeComposer . getResolver ( 'connection' ) . getFieldConfig ( )
145
145
) ;
146
146
const schema = new GraphQLSchema ( {
@@ -205,7 +205,7 @@ describe('composeWithRelay', () => {
205
205
it ( 'should pass `countResolveParams` to top resolverParams' , async ( ) => {
206
206
let topResolveParams ;
207
207
208
- rootQueryTC . addField ( 'userConnection' ,
208
+ rootQueryTC . setField ( 'userConnection' ,
209
209
userTypeComposer
210
210
. getResolver ( 'connection' )
211
211
. wrapResolve ( ( next ) => ( rp ) => {
@@ -235,7 +235,7 @@ describe('composeWithRelay', () => {
235
235
it ( 'should pass `findManyResolveParams` to top resolverParams' , async ( ) => {
236
236
let topResolveParams ;
237
237
238
- rootQueryTC . addField ( 'userConnection' ,
238
+ rootQueryTC . setField ( 'userConnection' ,
239
239
userTypeComposer
240
240
. getResolver ( 'connection' )
241
241
. wrapResolve ( ( next ) => ( rp ) => {
0 commit comments