extensions()
Returns an extensions' payload which can be used as a stand-alone GraphQL response or in conjunction with the data or errors methods.
Call signature
1function extensions(payload: Record<string, any>): MockedResponse
Examples
1graphql.query('GetTracking', (req, res, ctx) => {2 return res(3 ctx.data({4 check: 'OK',5 }),6 ctx.extensions({7 tracking: {8 version: '1.0.1',9 pageLoadSpeed: 1001,10 },11 server: 'Test Server 001',12 })13 )14})