andrejpk / apollo-datasource-cosmosdb Goto Github PK
View Code? Open in Web Editor NEWAn Apollo data source for Azure CosmosDB
License: MIT License
An Apollo data source for Azure CosmosDB
License: MIT License
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
}
}
}
Hi @andrejpk ,
Is there a way to set the MaxItemCount option? I am trying to restrict a response based on the number of items returned in an array and not by its size.
More info here
https://docs.microsoft.com/en-us/azure/cosmos-db/sql/sql-query-pagination
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.
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.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
mocha
, @types/mocha
)@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
)These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.
apollo-datasource
, apollo-server-errors
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
chai
, @types/chai
)mocha
, @types/mocha
)@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
).github/workflows/publish-github.yml
actions/checkout v2
actions/setup-node v1
actions/checkout v2
actions/setup-node v1
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.