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, […]
5 I have a React application with ApolloClient with Apollo-Link-Schema. The application works fine locally but in our staging environment (using GOCD), we get the following error: Uncaught Error: Cannot use e “__Schema” from another module or realm. Ensure that there is only one instance of “graphql” in the node_modules directory. If different versions of […]
1 I have below User graphql API endpoint in my application. Query class Query(UserQuery, graphene.ObjectType): all_users = DjangoFilterConnectionField( UserType, filterset_class=UserFilter) Type class UserType(DjangoObjectType): class Meta: model = User fields = "__all__" interfaces = (graphene.relay.Node,) Filter class UserFilter(FilterSet): user_name_search = CharFilter( method=’user_name_filter’, label=’User Name Search’ ) class Meta: model = User fields = [ ‘user_name_search’, ‘user_id’, […]
0 I couldn’t use Graphql Codegen’s client-preset-swc-plugin with Vite at all to reduce the bundle size. It panics when trying to build for production, I’m getting this error: [vite-plugin-pwa:build] failed to handle: failed to invoke plugin: failed to invoke plugin on ‘Some("/home/user/project/web/src/index.tsx")’ Caused by: 0: failed to invoke `/home/user/project/web/node_modules/@graphql-codegen/client-preset-swc-plugin/swc_plugin.wasm` as js transform plugin at /home/user/project/web/node_modules/@graphql-codegen/client-preset-swc-plugin/swc_plugin.wasm […]