Giter Club home page Giter Club logo

apollo-datasource-cosmosdb's People

Contributors

aaronpowell avatar andrejpk avatar aspladypfl avatar renovate-bot avatar renovate[bot] avatar svdoever 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

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.

Dependency Dashboard

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

Warning

These dependencies are deprecated:

Datasource Name Replacement PR?
npm apollo-datasource Unavailable
npm apollo-server-caching Unavailable
npm apollo-server-errors Available

Rate-Limited

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

  • chore(deps): update dependency prettier to v3.3.3
  • chore(deps): update dependency eslint to v9
  • chore(deps): update dependency nyc to v17
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

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/ci-github.yml
  • actions/checkout v4
  • actions/setup-node v4
.github/workflows/publish-github.yml
  • actions/checkout v4
  • actions/setup-node v4
npm
package.json
  • apollo-datasource ^3.3.2
  • apollo-server-caching ^3.3.0
  • apollo-server-errors ^3.3.1
  • bson ^6.4.0
  • dataloader ^2.2.2
  • @azure/cosmos 3.17.3
  • @types/chai 4.3.12
  • @types/mocha 10.0.6
  • @types/node 20.11.28
  • @typescript-eslint/eslint-plugin 7.1.1
  • @typescript-eslint/parser 7.1.1
  • @vercel/cosmosdb-server 0.15.0
  • chai 4.4.1
  • eslint 8.57.0
  • graphql ^16.8.1
  • mocha 10.3.0
  • nyc 15.1.0
  • prettier 3.2.5
  • release-it ^17.1.1
  • ts-mocha 10.0.0
  • typescript 5.4.4
  • ync 0.0.9
  • @azure/cosmos ^3.17.3

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

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.

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

}

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.