Packages

@graphql-tools/batch-delegate

10.1.7 · 20 Nov 2026MIT753.6k / weekRepositorynpmAtom feed

Your version

174 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 9.x
  2. 9.0.32

    11 Mar 2025
    • Dependencies updates:

    • Remove the index from the batched error;

      In case of batched delegation (for example multiple book entitites fetched from different places from a field), remove the index from the error message, as it is not relevant in this case.

      See the test

  3. 9.0.31

    14 Feb 2025

    Only updates a dependency:@graphql-tools/delegate 10.2.13

  4. 9.0.30

    13 Feb 2025
    • Dependencies updates:

  5. 9.0.28 – 9.0.292 releases that only update dependencies@graphql-tools/delegate 10.2.11Show each
  6. 9.0.27

    2 Jan 2025
    • Memoize the key arguments correctly;

      With the following schema and resolvers, userById should batch all the requests to usersByIds;

      {
            typeDefs: /* GraphQL */ `
              type User {
                id: ID!
                email: String!
              }
              type Query {
                userById(id: ID!): User
                usersByIds(ids: [ID!]): [User]
              }
            `,
            resolvers: {
              Query: {
                usersByIds: (_root, args) => {
                  return args.ids.map((id: string) => users.find((user) => user.id === id));
                },
                userById: (root, args, context, info) => {
                  return batchDelegateToSchema({
                    schema: userSubschema,
                    fieldName: 'usersByIds',
                    key: args.id,
                    rootValue: root,
                    context,
                    info,
                  })
                },
              },
            },
          }

      This query should batch all the requests to usersByIds:

      {
        userById(id: "1") {
          id
          email
        }
        userById(id: "2") {
          id
          email
        }
      }

      The delegation request should be;

      {
        usersByIds(ids: ["1", "2"]) {
          id
          email
        }
      }
  7. 9.0.26

    31 Dec 2024
  8. 9.0.25

    24 Dec 2024
    • Dependencies updates:

  9. 9.0.24

    13 Dec 2024

    Only updates a dependency:@graphql-tools/delegate 10.2.8

  10. 9.0.23

    6 Dec 2024
    • Dependencies updates:

  11. 9.0.22

    4 Dec 2024
    • Dependencies updates:

    • Dependencies updates:

    • Dependencies updates:

  12. 9.0.18 – 9.0.214 releases that only update dependencies@graphql-tools/delegate 10.2.5Show each
  13. 9.0.17

    27 Nov 2024
    • Dependencies updates:

    • Dependencies updates:

    • Dependencies updates:

  14. 9.0.6 – 9.0.1611 releases with no change for you10 dependency updates, 1 without a note@graphql-tools/delegate 10.2.0Show each
  15. 9.0.5

    16 Oct 2024

    Reading the note…

  16. 9.0.4

    15 Oct 2024

    Reading the note…

  17. 9.0.3

    27 May 2024

    Reading the note…

  18. 9.0.2

    19 Apr 2024

    Reading the note…

  19. 9.0.1

    23 Feb 2024

    Reading the note…

  20. 9.0.0

    19 May 2023
  21. 8.x
  22. 8.4.27

    27 Apr 2023

    Reading the note…

  23. 8.4.26

    24 Apr 2023

    Reading the note…

  24. 8.4.25

    13 Apr 2023

    Reading the note…

  25. 8.4.24

    6 Apr 2023

    Reading the note…

  26. 8.4.23

    4 Apr 2023

    Reading the note…

  27. 8.4.22

    29 Mar 2023

    Reading the note…

  28. 8.4.21

    23 Feb 2023

    Reading the note…

  29. 8.4.20

    14 Feb 2023

    Reading the note…

  30. 8.4.19

    6 Feb 2023

    Reading the note…

  31. 8.4.18

    1 Feb 2023

    Reading the note…

  32. 8.4.17

    29 Jan 2023

    Reading the note…

  33. 8.4.16

    26 Jan 2023

    Reading the note…

  34. 8.4.15

    12 Jan 2023

    Reading the note…

  35. 8.4.14

    21 Dec 2022

    Reading the note…

  36. 8.4.13

    8 Dec 2022

    Reading the note…

  37. 8.4.12

    7 Dec 2022

    Reading the note…

  38. 8.4.11

    7 Dec 2022

    Reading the note…

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.