Skip to content

[Feature Request] Expose the Dataloader API options #65

@elbasan

Description

@elbasan

We recently had this issue where the CosmosDB query length limit exceeded.

To fix this, we had to write our own wrapper to set the maxBatchSize option to limit the number of request that get queued into one batch request, as we currently can't set this option in apollo-datasource-cosmosdb.

Is it possible to add the ability to set the Dataloader options?

For example:

class Data extends CosmosDataSource<Container, ApolloContext> {

  constructor(container: Container, options: CosmosDataSourceOptions) {
    super(container, options);

    this.options.dataloader = {
      maxBatchSize: 1000,
      ... // other Dataloader options https://github.com/graphql/dataloader#class-dataloader
    }
  }

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions