Coder Social home page Coder Social logo

apollo-datasource-cosmosdb's People

Contributors

aaronpowell avatar andrejpk avatar aspladypfl avatar renovate-bot avatar renovate[bot] avatar swantzter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

apollo-datasource-cosmosdb's Issues

[Feature Request] Expose the Dataloader API options

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
    }
  }

}

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

Connection String Format

Updating - had originally posted a question about connectivity issues between Cosmos and this library.

Turns out the issue was this library doesn't support API for MongoDB, whereas an API for NoSQL instance worked strait away. For Mongo users the Hot Chocolate .NET path seems to be the best approach.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update dependency graphql to v16.8.1
  • fix(deps): update dependency bson to v4.7.2
  • fix(deps): update dependency dataloader to v2.2.2
  • chore(deps): update actions/checkout action to v4
  • chore(deps): update actions/setup-node action to v4
  • chore(deps): update dependency @azure/cosmos to v4
  • chore(deps): update dependency @types/node to v20
  • chore(deps): update dependency mocha to v10 (mocha, @types/mocha)
  • chore(deps): update dependency prettier to v3
  • chore(deps): update dependency ts-mocha to v10
  • chore(deps): update dependency typescript to v5
  • chore(deps): update typescript-eslint monorepo to v6 (major) (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • fix(deps): update dependency bson to v6
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/publish-github.yml
  • actions/checkout v2
  • actions/setup-node v1
  • actions/checkout v2
  • actions/setup-node v1
npm
package.json
  • apollo-datasource ^3.3.1
  • apollo-server-caching ^3.3.0
  • apollo-server-errors ^3.3.1
  • bson ^4.6.3
  • dataloader ^2.1.0
  • @azure/cosmos 3.10.3
  • @types/chai 4.2.18
  • @types/mocha 8.2.2
  • @types/node 16.11.27
  • @typescript-eslint/eslint-plugin 5.11.0
  • @typescript-eslint/parser 5.11.0
  • @zeit/cosmosdb-server 0.13.2
  • chai 4.3.4
  • eslint 8.6.0
  • graphql ^16.5.0
  • mocha 8.3.2
  • nyc 15.1.0
  • prettier 2.2.1
  • ts-mocha 8.0.0
  • typescript 4.2.4
  • ync 0.0.9
  • @azure/cosmos ^3.10.3

  • Check this box to trigger a request for Renovate to run again on this repository

CosmosDataSource requires Context now?

Can you update the sample code to explain where the ApolloContext is from (package) and how it is created?

export class UserDataSource extends CosmosDataSource<UserDoc, ApolloContext> {}

I'm updating from 0.0.14 where it wasn't required to 0.1.0 where it seems to be required.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.