Skip to content

4 data loader requests with 4 customised data loader classes, but with the same key #223

@SnigdhaSanat

Description

@SnigdhaSanat

I am using com.graphql-java:java-dataloader: version 3.3.0. I have a scenario whew the graphql request is something of the shape:

query myQuery($id: ID!) {
  node(id: $id) {
    id
    ... on myObject {
      name
      
      field1 {
        totalCount
      }
      field2 {
        totalCount
      }
      field3 {
        totalCount
      }
      field4 {
        totalCount
      }
    }
  }
}

I have 4 classes that extend DataLoader, to resolve field1 to field4. Each of them use the same key id. I don't see the DataLoader's batchLoadFunction function getting executed for any of the 4 calls to dataloader.load()

Is this behaviour expected? Also, did something changed between the above version 3.3.0 and a previous version 3.1.2?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions