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 […]
1 I have a postgres table (User) which is fed data from a third party service like Airflow or Nifi. I am running an apollo-server with NodeJS which fetches the user data and passes this data to the React component. One way to show the details of users is using polling in apollo-client which will […]
0 I tried to use Federation in my supergraph. I have 2 microservices, each one with the own schema: 1. first subgraph has: type User @key(fields: id) @guard { id: ID! firstname: String! } 2. second subgraph has: type GraphUnion { id: ID! user_id: Int text: String user: User! @hasOne } type User @extends @key(fields: […]
0 I am trying to run this mutation to update the quantities of a product variant on shopify via graphql . (https://shopify.dev/docs/api/admin-graphql/2023-07/mutations/productvariantupdate) productVariantUpdate(input: $input) { productVariant { id sku product { id title } inventoryQuantity } userErrors { field message } } } $input = [ ‘id’ => "gid://shopify/ProductVariant/123456", ‘inventoryQuantities’ => [ "availableQuantity" => 123, […]