Skip to content

v0.22.0

Compare
Choose a tag to compare
@kettanaito kettanaito released this 18 Nov 11:18

Breaking changes

Features

  • Supports setting both ctx.data and ctx.errors in GraphQL responses (#401, #403).
graphql.query('GetUser', (req, res, ctx) => {
  return res(
    ctx.data({ id: 'abc-123' }),
    ctx.errors([
      { message: 'Failed to get user posts' }
    ])
  )
})
  • Supports creation of custom response transformers (#440, #441).

Bug fixes

  • Fixes an issue that resulted into inferred response status texts always set to "OK" (#438).