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
6
votes
2 answers

How do I insert an optional field as null using AppSync Resolvers and Aurora?

I have an optional String field, notes, that is sometimes empty. If it's empty I want to insert null, otherwise I want to insert the string. Here is my resolver - { "version" : "2017-02-28", "operation": "Invoke", #set($id =…
6
votes
2 answers

AWS AppSync Event Subscription Filtering on Cognito User

I have the following Schema: input CreateEventInput { userID: String! eventID: ID! type: String! data: String dateTime: AWSDateTime! } type Mutation { createEvent(input: CreateEventInput!): event } type Subscription { …
6
votes
2 answers

React Native + AWS AppSync - maximum data storage

I’m building an offline application which needs to store around 30,000 records. Will AWS AppSync have any performance issues with a data set of this size? I’ve used redux w/ redux-persist in the past, which saves the store offline, then refetchs and…
6
votes
2 answers

AWS AppSync - Unauthorized Exception

I have started using AWS AppSync and am running into a permissions issue. I used AppSync to create a DynamoDB table for my data, and set up authorization for use with Cognito User Pools, which I've already created. I set the Default Action to ALLOW…
6
votes
1 answer

How to test Subscription in AWS AppSync Console?

I have written the following subscription and mutation code in the App Sync Console: subscription SubscribeToCreateDoctor { subscribeToCreateDoctor { id name } } mutation CreateDoctor { createDoctor( input:…
Deep Arora
  • 1,900
  • 2
  • 24
  • 40
6
votes
3 answers

Querying DynamoDB with a list in AWS AppSync

I am trying to build an AWS AppSync query with a list using IN: { "version" : "2017-02-28", "operation" : "Query", "index" : "my-index", "query" : { "expression": "id IN :ids", "expressionValues" : { ":ids" :…
vahdet
  • 6,357
  • 9
  • 51
  • 106
6
votes
1 answer

Cognito custom claims missing with Amplify but not with Appsync Console

I have the following resolver, allowing me to retrieve information about the current user company (companyId is added as a custom field on the cognito user pool). The field on cognito is set to mutable. { "version" : "2017-02-28", …
6
votes
2 answers

Return nested JSON in AWS AppSync query

I'm quite new to AppSync (and GraphQL), in general, but I'm running into a strange issue when hooking up resolvers to our DynamoDB tables. Specifically, we have a nested Map structure for one of our item's attributes that is arbitrarily constructed…
6
votes
2 answers

Aws Appsync $util.error: data and errorInfo always null

I am playing with AWS AppSync. I am trying to output some error details when the request fails using the $util.error() helper (Documented here) in my resolver's response mapping template. No matter what I do, I am not able to get AppSync to output…
Benoît Bouré
  • 1,017
  • 9
  • 18
6
votes
1 answer

How return JSON object from DynamoDB with appsync?

How I can get JSON object in response from DynamoDB ? I store data in DB as array of object in format JSON. I have next mapping template request { "version": "2017-02-28", "operation": "PutItem", "key": { "userId": { "S": …
6
votes
1 answer

Append item to list using AWS AppSync to DynamoDB

This might be a stupid question, but I really cannot find a way to do that. So, I have DynamoDB tables and I have schema in AppSync api. In a table, for each row, there is a field which has a list as its value. So how can I append multiple items…
6
votes
2 answers

AWS AppSync Versioning

I have set up an AWS AppSync including a GraphQL Schema, corresponding data sources as Dynamo DB tables as well as S3 Buckets from which I read data into the tables employing lambda functions. I would like to version this setup by means of VCS…
6
votes
1 answer

Use AppSync and Amazon RDS with serverless-graphql

There is this great repository with example implementations of different serverless scenarios. Right now I'm struggling with the combination of AppSync and Amazon RDS. I tried the implementation of the standalone rds, and the appsync examples…
widdy
  • 426
  • 5
  • 21
6
votes
2 answers

Unable to upload large graphql schema to aws appsync

I am trying to upload my graphql schema to aws appsync. My graphql schema is nearly 5000 lines long. I tried uploading using cli and gui, both. (1.) When using cli, I am continually getting error "Failed to parse schema document - ensure it's a…
Tapan Halani
  • 334
  • 1
  • 3
  • 11
6
votes
3 answers

Save AWS Cognito Users in DynamoDB

I recently started experimenting with AWS AppSync but I had some questions around AWS Cognito. I would like for users to be able to authenticate with Facebook but I need their profile picture, name and email as data for my public user profiles in my…