Questions tagged [apollo-datasource]

5 questions
1
vote
1 answer

Use String id instead of ObjectId with MongoDataSource (apollo server)

We have a MongoDB database using string ID's (no 12 bytes || 24 hex) Theses ID's were generated by MeteorJS. We now develop a GraphQL layer with apollo server. We want to use the apollo-datasource-mongodb to load our data but when we call the…
0
votes
1 answer

Having a hard time understanding the context configuration (within DataSources)

When extending Apollo Server's DataSources we have to create an initialize method, inside the class : initialize(config){ this.context=config.context } Yet I cannot clearly define a mental model when it comes to the relationship between the class…
Peter Malik
  • 403
  • 4
  • 14
0
votes
1 answer

what does the function incrementTransactionNumber() do in mongodb node driver?

I know the function's name seems to be self explanatory, however, after researching for quite a while I can't find a transaction number anywhere within a clientSession. Is it an internal number ? is it possible to get it ?
asma
  • 11
  • 3
0
votes
2 answers

Best way to consume & combine another public apollo graphql apis: federation v schema stitching

I'm developing a backend-for-frontend (BFF) solution for a web client with apollo graphql Use-case background, our organization has a general use graphql api that another team owns and my team is creating another graphql server to consume it. This…
jVERM
  • 131
  • 1
  • 5
0
votes
1 answer

Use Apollo server as a pass through of a query from client

I have a use case where I have apollo-server-express running with a React based apollo-client. I have an external graphql-datasource for some queries. Currently, I've configured apollo-datasource-graphql to be used as a data source for my…
Newtt
  • 6,050
  • 13
  • 68
  • 106