0 I am expecting to get data from multiple sources via single subscription if the data is not available in the source yield empty response, for certain number of retries @strawberry.type class DataFromSources: source_1 : JSON source_2 : JSON @strawberry.type class Subscription: @strawberry.subscription async def data_from_sources(self, target: int = 10) -> AsyncGenerator[DataFromSources, None]: source_1, source_2 […]
0 I’m working on a Node.js project having a main-service(A central component where various remote microservices which are exposed with respective "port/graphql" are stitched together to create a unified API endpoint. It acts as a gateway or aggregator, allowing clients to access multiple functionalities provided by different microservices through a single entry point.). Now, I […]
1 What is the 6SBWVfRVIH0h71ssRzNVUg value in https://twitter.com/i/api/graphql/6SBWVfRVIH0h71ssRzNVUg/Followers?variables={"userId":"1234567","count":20,"withHighlightedLabel":false,"withTweetQuoteCount":false,"includePromotedContent":false,"withTweetResult":false,"withUserResult":false} ? Twitter now uses Graphql to retrieve the followers list, in both the Web version and the mobile api. There are no previous requests to get the 6SBWVfRVIH0h71ssRzNVUg value, and it’s not constant. It changes with every request. The problem is I can’t use the same value […]
0 I have a multi-module project where one of them is the GraphQL module the Runnable File is in a different module with a working RestController the GraphQLController is not exposed. I have tried to move the application.properties to the runnable module didn’t work, tried to move the GraphQLController also didn’t work I even moved […]
0 I have an apollo request which returns some data, but no matter what I do I can’t access the value and at this point I’m all out of ideas, maybe I’m missing something obvious, here’s the request : mutation MyMutation($jwtRefreshToken: String = "") { refreshJwtAuthToken(input: {jwtRefreshToken: $jwtRefreshToken, clientMutationId: "uniqueId"}) { authToken } } JS […]
0 I tried to make the subscription update course in the nest js, but it turns out error Object is possibly ‘undefined’ in this line of code const course = await this.courseService.findOne({ id: variables.courseId }); below is my course.resolver.ts @Subscription(‘courseUpdated’, { resolve: (value) => value, filter: async (payload, variables) => { const course = await […]
0 I have 3 databases in my project. Every database has different data. But they have some relation between them. For example on the transaction database in my transaction, it has a userId stored and in the Default database User table has this user. Now how to manage these multi-database and cross-relation between databases in […]
0 I have a Node.js express application that is serving an Apollo GraphQL API serving as a BFF for a React Application. The project uses the latest graphql npm package of 16.8.0 and it utilizes the graphql-contstraint-directive package. Now when I build my project — build script is "build": "tsc" — it throws this error: […]
0 I am working on a component to map all posts from a graphQL query on the client side using semantic UI. I am running it locally and the webpage is not showing any of the data even though this query works in apollo studio. Here’s the code for the component. import React from ‘react’; […]
1 I have been trying to build a federation gateway on top of existing graphql services and am curious if there are any other implementations of the same apart from apollo federation? I tried to find but couldn’t find any. I am also looking for subscription on the federated gateway. Does anybody know any other […]