@@ -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