Tag: #reactjs
-
Is GraphQL API suitable for supermarket POS(Point-Of-Sales) application?
0 I am developing a smart POS application that serves as an integrated software solution that facilitates efficient and modern point-of-sale operations for supermarkets. This system has the following functionalities. Sales processing and transaction management Inventory management Employee management Report and Analytics E-commerce integration Multi-Store support Customer management I chose ReactJS for the front-end, Springboot…
-
Error when installing apollo/client in react-native app
0 I am building a react native cli app and I want to use @apollo/client to reach the graphql server. But when running these commands npm install @apollo/client graphql I get the following error. npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] npm ERR! node_modules/graphql npm…
-
How to use @live queries with graph-client?
0 I have successfully configured graph-client, and following the documentation, I updated my .graphclientrc.yml including the following: plugins: – pollingLive: defaultInterval: 1000 This is the query I am trying to execute, which works just fine without the @live decorator: query GetOrderById($id: Bytes!, $historyOrder: OrderDirection!) @live { orders(where: { id: $id }) { id requester tokenAddress…
-
Update Relay Store from data saved on cache for Offline mode
0 I’m developing a React native app, and want to restore data saved on cache when the user opens the app again, but it’s offline. I was able to get the latest store by using store.getSource() and save it as a serialised JSON to the device storage. I do also recover and unserialise it, but…
-
GraphQL Client with ApolloBoost issues
0 I’m trying to run a React App using ApolloClient in node.js, and I receive the following error from Chrome Inspect: invariant.ts:12 Uncaught Invariant Violation: An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#%7B%22version%22%3A%223.8.2%22%2C%22message%22%3A47%2C%22args%22%3A%5B%5D%7D at new InvariantError (https://localhost:60422/static/js/0.chunk.js:76352:24) at invariant (https://localhost:60422/static/js/0.chunk.js:76363:11) at invariant (https://localhost:60422/static/js/0.chunk.js:9980:67) at useApolloClient (https://localhost:60422/static/js/0.chunk.js:7980:80) at useQuery (https://localhost:60422/static/js/0.chunk.js:8412:103) at…
-
How can I add a variable to all requests in apollo client?
1 I need a middleware so I can pass a variable in all my requests. This is what I have, but isn’t working. const httpLink = new HttpLink({ uri: process.env.REACT_APP_BASE_URL_API }); const addVariableMiddleware = new ApolloLink((operation, forward) => { operation.variables.newVariable = "nuevavariable"; return forward(operation); }); const client = new ApolloClient({ cache: new InMemoryCache(), link: from([addVariableMiddleware,…
-
Material-UI TextField select still only shows the old values
0 I have the following code, the values and change when another Dialog is completed and it will trigger useEffect to refetch data from the server but the Material-UI TextField select still only shows the old values (new value is not being shown). import { Button, Dialog, DialogActions, DialogContent, DialogTitle, MenuItem, } from ‘@mui/material’; import…
-
Remix shopify app , in action can i do a fetch api request and get the response and from that response , i create a server side graphql mutation
0 So i’m new to shopify dev app , and i just installed a project in which i’m learning how to use the Remix framework . let me explain to you what i’m trying to achieve : 1 – i’m creating a shopify app , in which when a person has a shopify store and…
-
How can graphQl update its won cache in reaction to data mutations triggered by a different user?
0 Here is a scenario: User A is friends with user B. User C is an admin. When user A queries the list of his friends, the list comes back, and user B is one of its members. This list is cached and the following queries are read from the cache. Now, let’s say the…