Tag: React Native
-
Variables of required type not provided despited their validity
2 I’m getting a GraphQL error I can’t seem to pinpoint the source of. Variable “$title” of required type “String!” was not provided. Variable “$body” of required type “String!” was not provided. Variable “$price” of required type “Int!” was not provided. The error message is simple. There are three required variables for this mutation and…
-
GraphQL – Apollo Client without using hooks?
11 I am attempting to use the Apollo GraphQL Client for React Native. However, in some parts of my app I need to do a mutation on the GraphQL data, in such a way that the interface should not be exposed to the user. For instance, on my sign up page, I want to create…
-
How do i define an enum in react native
8 Basically what I’m trying to achieve is send info to the server without quotations e.g Admin instead of “Admin”, but as we all know Graphql will throw an error is the variable is not defined or is not in quotations. javascript react-native enums graphql Share Improve this question Follow asked May 2, 2018 at…
-
Posting Image to wordpress through Apollo client and GraphQL
0 I’m currently facing a challenge with React Native related to file uploads. I’m working with a WordPress backend that uses GraphQL, and for file uploading, I’m relying on the wp-graphql-upload plugin available on GitHub. This plugin requires the submission of actual file objects, but React Native inherently doesn’t support direct file submissions – it…
-
React-native AWS amplify graphQl Subscription
0 In my react native project, I am using graphQl subscription with aws-amplify. The problem is it’s not getting notified/called when the backend sends a notification. The backend developer told me, that from their side notification is sending correctly. Now from the Front end side setup is also properly done because one other subscription is…
-
React Native Navigation stack screen mix up
0 There’s some logic issue with my stack when I’m trying to login and logout. I’m currently storing a token using AsyncStorage, however, it seems to be a problem of going into another navigation stack and I’m not quite understanding it. I have verified that the token is showing up as intended and being wiped…
-
How to setup Hasura CLI?
0 I installed hasura CLI and I want to send data on my hasura cloud project. I tried different ways to launch hasura console but I don’t find the good way to launch it. Every time I have the same error and I don’t know how to solve it. You can see my Hasura CLI…
-
GraphQL query header with variable not setting on first render
0 I am using graphQL in react native project. I am passing headers (cookie/authorization) in context object of query, in useMutation or useQuery. [Problem is only on iOS App] The basic system of the app is user signup the profile, and verify, on initial signup the property finishedAccountSetup: false is false. so when they log…
-
Best practices to not continuously call update APIs from mobile client
0 I’m kinda stuck on how would be the best way to implement this functionality of my app: a user has a cart and can add or remove how many items he wants throw a stepper (+ and – buttons). The cart is also saved on the backend so each stepper press (as of right…