Questions tagged [aws-appsync]

AWS AppSync lets you build data-driven apps with real-time and offline-first capabilities based on GraphQL with custom resolver support for DynamoDB, ElasticSearch, AWS Lambda, and Local datasources.

1785 questions
7
votes
1 answer

Can I trigger a subscription event in AWS AppSync from my lambda function?

As the title says I want to trigger a subscription event from my code. Think about an use case, where a user wants to search the Internet for the cheapest flight. A Lambda function starts scraping popular flight tickets offering websites and with…
Konrad Kalemba
  • 1,209
  • 13
  • 21
7
votes
3 answers

AWS AppSync query returns cached response even when offline is disabled

I have a fairly simple node app using AWS AppSync. I am able to run queries and mutations successfully but I've recently found that if I run a query twice I get the same response - even when I know that the back-end data has changed. In this…
macbutch
  • 3,241
  • 2
  • 27
  • 27
7
votes
2 answers

AppSync and GraphQL Enum mutations

I have the following schema in AppSync for GraphQL input CreateTeamInput { name: String! sport: Sports! createdAt: String } enum Sports { baseball basketball cross_country } type Mutation{ createTeam(input:…
Dan Ramos
  • 1,092
  • 2
  • 19
  • 35
7
votes
2 answers

passed to parser was not a valid GraphQL DocumentNode.you may need to use 'graphql-tag' or another method to convert your operation into a document

Iam new to react-native,graphql and Aws AppSync . We tried to build an react-native app using the aws appsync.When i run react-native run-android it is throwing an error saying passed to parser was not a valid GraphQL DocumentNode.you may need to…
Bharath Kuppala
  • 176
  • 1
  • 3
  • 14
7
votes
2 answers

AppSync: How set header in response?

I want to authorize the user through http only cookies. I want to set header in the AppSync response as example "Set-Cookie": "cookie=cookie; HttpOnly" in "Configure the response mapping template" I have $util.toJson($context.result) How can I do…
7
votes
3 answers

AppSync mutation that triggers more mutations

I have two tables: Posts and Users In the createPost mutation resolver, I set some default values do certain properties (think userId, createdAt timestamp, isDeleted flag etc). In addition, I would like to increment the User's numPosts counter. Is…
Z Jones
  • 2,015
  • 4
  • 23
  • 42
7
votes
1 answer

Group authorization in AppSync using IAM authentication

My service requires user groups for authorising access to data. Group authorization examples in AppSync documentation are based on User Pool claims. I'm using IAM authentication so $context.identity doesn't include claims or any similar…
Lindlof
  • 2,152
  • 2
  • 17
  • 26
7
votes
2 answers

Can AWS App-Sync be used without dynamoDB

I am interested in the offline and sync capabilities of Amazon's app-sync but I was wondering if it could be used without dynamoDB as the backend. The graphQL resolvers written in VTL for dynamoDB look atrocious. It seems it would be much nicer to…
honkskillet
  • 3,007
  • 6
  • 31
  • 47
7
votes
0 answers

Is AWS AppSync available for Xamarin?

Although I see the SDK here Github : https://github.com/aws/aws-sdk-net/tree/master/sdk/src/Services/AppSync Nuget : https://www.nuget.org/packages/AWSSDK.AppSync I do not see any sample apps using the AppSync for Xamarin or even .NET on Google. Is…
John Choi
  • 71
  • 4
7
votes
1 answer

Are AppSync's subscriptions very limited to one specific use case?

I spend the last day trying AWS AppSync I'm a bit disappointed with what subscriptions can do. It seems to me that the current state of AppSync subscription is for the use case where you have a list of items and you want it to be sync over all…
Tom
  • 785
  • 10
  • 26
7
votes
4 answers

Can Aurora PostgreSQL be used with AWS AppSync?

I've seen examples of DynamoDB as the data source for AWS AppSync but I'm wondering if Aurora (specifically PostgreSQL) can be used? If yes, what would the resolvers look like for a basic example? Are there any resources that demonstrate doing…
user1843640
  • 3,613
  • 3
  • 31
  • 44
7
votes
1 answer

How do I get the date/requestTime/timestamp in Mapping Template

Looking at the documentation here it appears there is no way of getting the requestTime from the context variable. Is there any other way, apart from using a lambda resolver, to get that value? I know it is possible when using API Gateway, so surely…
Julienmachon
  • 171
  • 1
  • 7
6
votes
1 answer

Aws AppSync token expiry date

I am using AWS Amplify datastore. App-sync token in internally used by this service. Currently, App-sync token is expired so I changed expired date from Appsync / Settings / API keys. But this allow to edit expired date maximum for next one year. Is…
6
votes
0 answers

How can I split one big appsync into multiple smaller ones without changing FE?

I have one big appsync graphql application running on AWS. FE is calling this Appsync as backend interface. I also have a few small appsyncs running from other teams. I am thinking to combine them together but not sure how. Each smaller appsync has…
Joey Yi Zhao
  • 37,514
  • 71
  • 268
  • 523
6
votes
2 answers

How to use existing dynamo db with AWS Amplify and graphql

We have existing database in dynamodb for our application. For one of our new React app, we want to use AWS Amplify and we are trying to use the existing tables. I created a skeleton project and went to backend AWS AppSync console -> Data Sources…
csharpnewbie
  • 789
  • 2
  • 12
  • 33