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
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
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.
Hi @andrejpk ,
Noticed that with Apollo Server v4, apollo-datasource package has been deprecated and will hit EOL on 22 October 2024.
Reference - https://www.npmjs.com/package/apollo-datasource
Could you please consider making the required changes to remove the apollo-datasource dependency?
Thanks
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 |
|
npm | apollo-server-caching |
|
npm | apollo-server-errors |
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
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/ci-github.yml
actions/checkout v4
actions/setup-node v4
.github/workflows/publish-github.yml
actions/checkout v4
actions/setup-node v4
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
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.
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
}
}
}
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.