Questions tagged [appsync-apollo-client]

33 questions
1
vote
1 answer

Can I pre-cache data to work offline in mobile app using AppSync?

I am developing an Android and iOS app that could be used in areas that have a very poor or no data connection. It is a requirement for the app to be pre-loaded with all of the data so it will work even if the app never communicated with the server,…
Mark
  • 1,130
  • 3
  • 17
  • 32
1
vote
1 answer

AWS AppSync Error - AWSMobileClientStore.get(String) on null object reference

APPSYNC_ERROR: Attempt to invoke virtual method java.util.Map com.amazonaws.mobile.client.AWSMobileClientStore.get(java.lang.String[]) on a null object reference I am trying to inserting data in AWS table, But i got this error. Can you help…
1
vote
1 answer

AWS Appsync graphqlMutation helper not updating query

I'm following this tutorial: https://egghead.io/lessons/react-execute-mutations-to-an-aws-appsync-graphql-api-from-a-react-application I have a simple todo react app hooked up to AppSync via amplify. The queries and mutations were autogenerated by…
1
vote
1 answer

How to pass a variable holding a string to a GraphQL query via the AWS AppSync client?

I am using React JS app to submit data with the AWS AppSync client and a GraphQL API to a NoSQL Table in the cloud. I autogenerated the GraphQL operations with AWS Amplify and now I am attempting to submit the following operation in my React…
1
vote
1 answer

AWS AppSync Subscriptions: Complex Authorization based on Object with in Updated Document

The object that will be changed by a mutation contains a permissions array that contains user objects that consist of a userId and a write permission boolean. If a user's userId is present in the list, the user has read permission on the object. If…
0
votes
1 answer

Way to sort by createdAt in AWS DynamoDB in conjunction with ApolloClient/React, WITHOUT AWS Amplify

I am having trouble sorting my DynamoDB database by createdAt I am working from the AWS console. I’m using AWS AppSync and DynamoDB for the back-end, and React and Apollo Client for the front-end. I’m not using AWS Amplify (company policy) My…
0
votes
0 answers

gql subscriptions are disconnected after background/lock and unlock the app using aws-appsync-subscription-link

I'm using React Native, and after background the application or lock the phone, when you focus it again all the subscriptions are disconnected and they are not receving events anymore (both useSubscription and subscribeToMore) I'm creating the…
0
votes
1 answer

Get Total Number of AppSync requests generated for certain period of time | AWS | APPSYNC

Is there a way to get the Total number of (appsync) api requests made to application for a certain time period? I'm testing a module of application and it is generating requests. I want to calculate the total number of requests generated for all the…
0
votes
0 answers

AppSync client doesn't returns data

I need some pro advice here because I am going a little crazy. I am trying to create an graphql client combining Apollo and AppSync. I've done this approach before, but it is not working in another project I've just created. My situation is the…
0
votes
2 answers

Using AWSAppSyncClient inside an ECS Container (Fargate) with AWS_IAM auth mode - Returns 403 UnrecognizedClientException

We have the following code in an ECS Fargate container however it is constantly returning an error. When running identical code in a lambda with IAM authentication and the correct role setup, I am able to successfully run this. Error Network error:…
Matt
  • 1,490
  • 2
  • 17
  • 41
0
votes
1 answer

How to use Apollo Client virtual fields

I am having trouble understanding how to set up virtual fields and/or mocking with Apollo Client and my graphql API (Appsync). I have created a codesandbox here https://codesandbox.io/s/stoic-johnson-rkgmg?file=/src/EventList.js. This is a demo…
0
votes
2 answers

Deploying on AWS Amplify

I have a web application which I want to deploy on AWS amplify. I am very new to this, following the procedure, I always get a build error (command ng build not found) My app builds perfectly on local machine, and all the files are transferred to…
0
votes
1 answer

Why use AWS AppSync client on top of vue-apollo?

When using AWS AppSync as a backend GraphQL server, what are the advantages of using AppSync client on top of vue-apollo client? Can I just use vue-apollo to interact with my GraphQl server without using AppSync client?
0
votes
1 answer

AWS Appsync subscription is not triggered when device came to onlne from offline (event triggered when device was offline)

Subscription Listener is registered in android Make device offline Trigger a mutation from AWS console Make device online I am expecting the subscription block to be called since there is a mutation(I am getting the subscription when device is…
0
votes
1 answer

AWS AppSync Offline mutations are getting updated to the server multiple times when the device is connected to the network

I'm using AWS AppSync Android SDK in my Project and i have noticed an issue that when i run a mutation it was working fine if the device is connected to the network, but if i do an offline mutation and then enabled my network, the same mutation is…