Catch the highlights of GraphQLConf 2023!Click for recordings.Or check out our recap blog post.

graphql-yoga

5.1.1

Patch Changes

5.1.0

Minor Changes

5.0.2

Patch Changes

5.0.1

Patch Changes

5.0.0

Major Changes

Patch Changes

4.0.5

Patch Changes

4.0.4

Patch Changes

4.0.3

Patch Changes

4.0.2

Patch Changes

4.0.1

Patch Changes

4.0.0

Major Changes

Patch Changes

3.9.1

Patch Changes

3.9.0

Minor Changes

3.8.1

Patch Changes

3.8.0

Minor Changes

Patch Changes

3.7.3

Patch Changes

3.7.2

Patch Changes

3.7.1

Patch Changes

3.7.0

Minor Changes

Patch Changes

3.6.1

Patch Changes

3.6.0

Minor Changes

Patch Changes

3.5.1

Patch Changes

3.5.0

Minor Changes

3.4.1

Patch Changes

3.4.0

Patch Changes

3.3.1

Patch Changes

3.3.0

Minor Changes

Patch Changes

3.2.1

Patch Changes

3.2.0

Minor Changes

Patch Changes

3.1.2

Patch Changes

3.1.1

Patch Changes

3.1.0

Minor Changes

Patch Changes

3.0.3

Patch Changes

3.0.2

Patch Changes

3.0.1

Patch Changes

3.0.0

Major Changes

Minor Changes

  • #1966 (opens in a new tab) 6e250209 (opens in a new tab) Thanks @saihaj (opens in a new tab)! - Use @graphql-tools/executor as a default GraphQL Executor in favor of graphql-js.

  • #1497 (opens in a new tab) 1d7f810a (opens in a new tab) Thanks @ardatan (opens in a new tab)! - Support a schema factory function that runs per request or a promise to be resolved before the first request.

    createYoga({
      schema(request: Request) {
        return getSchemaForToken(request.headers.get('x-my-token'))
      }
    })
    async function buildSchemaAsync() {
      const typeDefs = await fs.promises.readFile('./schema.graphql', 'utf8')
      const resolvers = await import('./resolvers.js')
      return makeExecutableSchema({ typeDefs, resolvers })
    }
     
    createYoga({
      schema: buildSchemaAsync()
    })
  • #1662 (opens in a new tab) 098e139f (opens in a new tab) Thanks @ardatan (opens in a new tab)! - - Batching RFC support with batchingLimit option to enable batching with an exact limit of requests per batch.

    • New onParams hook that takes a single GraphQLParams object
    • Changes in onRequestParse and onRequestParseDone hook
    • Now onRequestParseDone receives the exact object that is passed by the request parser so it can be GraphQLParams or an array of GraphQLParams so use onParams if you need to manipulate batched execution params individually.

Patch Changes

3.0.0-next.12

Patch Changes

3.0.0-next.11

Major Changes

  • #2012 (opens in a new tab) 720898db (opens in a new tab) Thanks @saihaj (opens in a new tab)! - Remove .inject method to mock testing. Users should replace to use fetch method for testing. Checkout our docs on testing https://www.the-guild.dev/graphql/yoga-server/v3/features/testing (opens in a new tab).

    import { createYoga } from 'graphql-yoga'
    import { schema } from './schema'
     
    const yoga = createYoga({ schema })
     
    - const { response, executionResult } = await yoga.inject({
    -   document: "query { ping }",
    - })
     
    + const response = await yoga.fetch('http://localhost:4000/graphql', {
    +   method: 'POST',
    +   headers: {
    +     'Content-Type': 'application/json',
    +   },
    +   body: JSON.stringify({
    +     query: 'query { ping }',
    +   }),
    + })
    + const executionResult = await response.json()
     
    console.assert(response.status === 200, 'Response status should be 200')
    console.assert(executionResult.data.ping === 'pong',`Expected 'pong'`)

Patch Changes

3.0.0-next.10

Patch Changes

3.0.0-next.9

Minor Changes

Patch Changes

3.0.0-next.8

Minor Changes

3.0.0-next.7

Patch Changes

3.0.0-next.6

Patch Changes

3.0.0-next.5

Major Changes

3.0.0-next.4

Major Changes

Patch Changes

3.0.0-next.3

Patch Changes

3.0.0-next.2

Patch Changes

3.0.0-next.1

Patch Changes

3.0.0-next.0

Major Changes

Minor Changes

  • #1610 (opens in a new tab) f4b23387 (opens in a new tab) Thanks @ardatan (opens in a new tab)! - Pass the parsed request as-is and validate the final GraphQLParams in useCheckGraphQLParams

  • #1497 (opens in a new tab) 1d7f810a (opens in a new tab) Thanks @ardatan (opens in a new tab)! - Support a schema factory function that runs per request or a promise to be resolved before the first request.

    createYoga({
      schema(request: Request) {
        return getSchemaForToken(request.headers.get('x-my-token'))
      }
    })
    async function buildSchemaAsync() {
      const typeDefs = await fs.promises.readFile('./schema.graphql', 'utf8')
      const resolvers = await import('./resolvers.js')
      return makeExecutableSchema({ typeDefs, resolvers })
    }
     
    createYoga({
      schema: buildSchemaAsync()
    })
  • #1662 (opens in a new tab) 098e139f (opens in a new tab) Thanks @ardatan (opens in a new tab)! - - Batching RFC support with batchingLimit option to enable batching with an exact limit of requests per batch.

    • New onParams hook that takes a single GraphQLParams object
    • Changes in onRequestParse and onRequestParseDone hook
      • Now onRequestParseDone receives the exact object that is passed by the request parser so it can be GraphQLParams or an array of GraphQLParams so use onParams if you need to manipulate batched execution params individually.

Patch Changes

2.13.11

Patch Changes

  • Updated dependencies []:
    • @graphql-yoga/node@2.13.11

2.13.10

Patch Changes

2.13.9

Patch Changes

  • Updated dependencies []:
    • @graphql-yoga/node@2.13.9

2.13.8

Patch Changes

  • Updated dependencies []:
    • @graphql-yoga/node@2.13.8

2.13.7

Patch Changes

2.13.6

Patch Changes

  • eecf24c: Fix CommonJS TypeScript resolution with moduleResolution node16 or nodenext
  • Updated dependencies [eecf24c]
    • @graphql-yoga/node@2.13.6

2.13.5

Patch Changes

  • Updated dependencies [c00dad3]
    • @graphql-yoga/node@2.13.5

2.13.4

Patch Changes

  • @graphql-yoga/node@2.13.4

2.13.3

Patch Changes

  • Updated dependencies [639607d]
    • @graphql-yoga/node@2.13.3

2.13.2

Patch Changes

  • @graphql-yoga/node@2.13.2

2.13.1

Patch Changes

  • @graphql-yoga/node@2.13.1

2.13.0

Patch Changes

  • @graphql-yoga/node@2.13.0

2.12.0

Patch Changes

  • @graphql-yoga/node@2.12.0

2.11.2

Patch Changes

  • Updated dependencies [ca5f940]
    • @graphql-yoga/node@2.11.2

2.11.1

Patch Changes

  • Updated dependencies [9248df8]
    • @graphql-yoga/node@2.11.1

2.11.0

Patch Changes

  • Updated dependencies [8947657]
    • @graphql-yoga/node@2.11.0

2.10.0

Minor Changes

Patch Changes

  • Updated dependencies [7de07cd]
  • Updated dependencies [8922c3b]
    • @graphql-yoga/node@2.10.0

2.9.2

Patch Changes

  • @graphql-yoga/node@2.9.2

2.9.1

Patch Changes

  • @graphql-yoga/node@2.9.1

2.9.0

Patch Changes

  • Updated dependencies [06652c7]
  • Updated dependencies [2d3c54c]
    • @graphql-yoga/node@2.9.0

2.8.0

Patch Changes

  • @graphql-yoga/node@2.8.0

2.7.0

Patch Changes

  • @graphql-yoga/node@2.7.0

2.6.1

Patch Changes

  • Updated dependencies [0224bf9]
    • @graphql-yoga/node@2.6.1

2.6.0

Patch Changes

  • @graphql-yoga/node@2.6.0

2.5.0

Patch Changes

  • Updated dependencies [8b6d896]
    • @graphql-yoga/node@2.5.0

2.4.1

Patch Changes

  • @graphql-yoga/node@2.4.1

2.4.0

Patch Changes

  • Updated dependencies [28e24c3]
  • Updated dependencies [13f96db]
    • @graphql-yoga/node@2.4.0

2.3.0

Patch Changes

  • @graphql-yoga/node@2.3.0

2.2.1

Patch Changes

  • Updated dependencies [32e2e40]
    • @graphql-yoga/node@2.2.1

2.2.0

Patch Changes

  • Updated dependencies [1d4fe42]
    • @graphql-yoga/node@2.2.0

2.1.0

Patch Changes

  • Updated dependencies [4077773]
  • Updated dependencies [2739db2]
  • Updated dependencies [cd9394e]
    • @graphql-yoga/node@2.1.0

2.0.0

Major Changes

Minor Changes

  • 6750eff: rename GraphQLServerError to GraphQLYogaError.

  • 0edf1f8: feat: options for GraphiQL

  • d414f95: BREAKING Set maskedErrors value to true by default for safer defaults.

    BREAKING Remove disableIntrospection. Please use useDisableIntrospection from @envelop/disable-introspection instead. (opens in a new tab)

  • 36af58e: export renderGraphiQL function

  • bea2dcc: align envelop types

  • fc1f2c7: make options optional

  • fb894da: Rename createGraphQLServer to createServer

  • 1a20e1e: Export everything from @envelop/core and export GraphQLFile scalar

  • d078e84: Drop fastify and use node-http package

  • 6d60ebf: add tabs to GraphiQL

  • 9554f81: Add PubSub utility.

  • 95e0ac0: feat: remove unnecessary Upload scalar types

  • dcaea56: add missing tslib dependency

Patch Changes

  • 6effd5d: fix(node): handle response cancellation correctly

  • 3d54829: enhance: move W3C changes

  • 0edf1f8: feat(cli): binds GraphQL Config to GraphQL Yoga

  • a10a16c: Node Server implementation has been moved to @graphql-yoga/node package.

    CLI implementation has been moved to graphql-yoga package.

  • 5b6f025: feat(yoga-cli): fallback to default schema and add mock parameter

  • Updated dependencies [d414f95]

  • Updated dependencies [133f8e9]

  • Updated dependencies [14c93a7]

  • Updated dependencies [ec777b1]

  • Updated dependencies [dcaea56]

  • Updated dependencies [b0b244b]

  • Updated dependencies [cfec14b]

  • Updated dependencies [433558f]

  • Updated dependencies [3c82b57]

  • Updated dependencies [f5f06f4]

  • Updated dependencies [dcaea56]

  • Updated dependencies [8ab60cf]

  • Updated dependencies [433558f]

  • Updated dependencies [5fba736]

  • Updated dependencies [62e8c07]

  • Updated dependencies [ce60a48]

  • Updated dependencies [a8b619b]

  • Updated dependencies [6d60ebf]

  • Updated dependencies [44ad1b3]

  • Updated dependencies [0424fe3]

  • Updated dependencies [de1693e]

  • Updated dependencies [d60f79f]

  • Updated dependencies [dcaea56]

  • Updated dependencies [daeea82]

  • Updated dependencies [a10a16c]

    • @graphql-yoga/node@0.1.0

2.0.0-beta.8

Minor Changes

  • 6d60ebf: add tabs to GraphiQL

Patch Changes

  • 5b6f025: feat(yoga-cli): fallback to default schema and add mock parameter
  • Updated dependencies [3c82b57]
  • Updated dependencies [6d60ebf]
  • Updated dependencies [0424fe3]
  • Updated dependencies [d60f79f]
    • @graphql-yoga/node@0.1.0-beta.8

2.0.0-beta.7

Patch Changes

  • Updated dependencies [14c93a7]
  • Updated dependencies [ec777b1]
  • Updated dependencies [8ab60cf]
    • @graphql-yoga/node@0.1.0-beta.7

2.0.0-beta.6

Patch Changes

  • @graphql-yoga/node@0.1.0-beta.6

2.0.0-beta.5

Patch Changes

  • Updated dependencies [cfec14b]
  • Updated dependencies [5fba736]
  • Updated dependencies [44ad1b3]
    • @graphql-yoga/node@0.1.0-beta.5

2.0.0-beta.4

Patch Changes

  • Updated dependencies [433558f]
  • Updated dependencies [433558f]
    • @graphql-yoga/node@0.1.0-beta.4

2.0.0-beta.3

Patch Changes

  • Updated dependencies [62e8c07]
    • @graphql-yoga/node@0.1.0-beta.3

2.0.0-beta.2

Patch Changes

  • Updated dependencies [daeea82]
    • @graphql-yoga/node@0.0.1-beta.2

2.0.0-beta.1

Patch Changes

  • @graphql-yoga/node@0.0.1-beta.1

2.0.0-beta.0

Major Changes

  • de1693e: trigger release

Patch Changes

  • Updated dependencies [de1693e]
    • @graphql-yoga/node@0.0.1-beta.0

2.0.0-alpha.12

Minor Changes

  • dcaea56: add missing tslib dependency

Patch Changes

  • Updated dependencies [133f8e9]
  • Updated dependencies [dcaea56]
  • Updated dependencies [f5f06f4]
  • Updated dependencies [dcaea56]
  • Updated dependencies [ce60a48]
  • Updated dependencies [dcaea56]
    • @graphql-yoga/node@0.1.0-alpha.4

2.0.0-alpha.11

Patch Changes

  • @graphql-yoga/node@0.1.0-alpha.3

2.0.0-alpha.10

Patch Changes

  • Updated dependencies [b0b244b]
    • @graphql-yoga/node@0.1.0-alpha.2

2.0.0-alpha.9

Patch Changes

  • @graphql-yoga/node@0.1.0-alpha.1

2.0.0-alpha.8

Minor Changes

Patch Changes

  • 6effd5d: fix(node): handle response cancellation correctly

  • a10a16c: Node Server implementation has been moved to @graphql-yoga/node package.

    CLI implementation has been moved to graphql-yoga package.

  • Updated dependencies [d414f95]

  • Updated dependencies [a10a16c]

    • @graphql-yoga/node@0.1.0-alpha.0

2.0.0-alpha.7

Patch Changes

  • 3d54829: enhance: move W3C changes
  • Updated dependencies [3d54829]
    • @graphql-yoga/common@0.2.0-alpha.6
    • @graphql-yoga/handler@0.2.0-alpha.3

2.0.0-alpha.6

Minor Changes

  • 36af58e: export renderGraphiQL function

Patch Changes

  • Updated dependencies [36af58e]
    • @graphql-yoga/common@0.2.0-alpha.5
    • @graphql-yoga/handler@0.2.0-alpha.2

2.0.0-alpha.5

Patch Changes

  • Updated dependencies [d2c2d18]
    • @graphql-yoga/common@0.2.0-alpha.4

2.0.0-alpha.4

Minor Changes

  • fb894da: Rename createGraphQLServer to createServer

Patch Changes

  • Updated dependencies [e99ec3e]
  • Updated dependencies [fb894da]
    • @graphql-yoga/subscription@0.1.0-alpha.0
    • @graphql-yoga/common@0.2.0-alpha.3

2.0.0-alpha.3

Minor Changes

  • 0edf1f8: feat: options for GraphiQL
  • 1a20e1e: Export everything from @envelop/core and export GraphQLFile scalar
  • 9554f81: Add PubSub utility.
  • 95e0ac0: feat: remove unnecessary Upload scalar types

Patch Changes

  • Updated dependencies [0edf1f8]
  • Updated dependencies [95e0ac0]
    • @graphql-yoga/common@0.2.0-alpha.2
    • @graphql-yoga/handler@0.2.0-alpha.1

2.0.0-alpha.2

Patch Changes

  • Updated dependencies [5de1acf]
    • @graphql-yoga/common@0.2.0-alpha.1

2.0.0-alpha.1

Minor Changes

  • d078e84: Drop fastify and use node-http package

Patch Changes

  • Updated dependencies [d078e84]
  • Updated dependencies [d8f8a81]
    • @graphql-yoga/common@0.2.0-alpha.0
    • @graphql-yoga/handler@0.2.0-alpha.0

2.0.0-alpha.0

Major Changes