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
0
votes
1 answer

AppSync Dynamodb Resolvers

I am trying to learn how to use AppSync and its DynamoDB integrations. I have successfully created an AppSync GraphQL API and linked a resolver to a getter on the primary key and thought I understood what is happening. However, I can not get a…
0
votes
1 answer

AWS AppSync - GraphQL query timeout when running from AppSync Console

Intro I'm following the intro tutorial found here to create a Todo List app using Amplify + AppSync + GraphQL. All was working fine until I started testing out queries in the AppSync console on my GraphQL API. Problem When running my queries on the…
Matt
  • 233
  • 1
  • 2
  • 12
0
votes
1 answer

Amplify/React AppSync graphql subscriptions @auth error

Hello there :slight_smile: I've a little problem related with the @auth. (Amplify + React + AppSync) schema.graphql type Ticket @model @auth(rules: [ {allow: owner, provider: userPools}, ]) { id: ID! status: String! owner: String! …
0
votes
1 answer

How to query from AppSynch using e.g. Urllib3

I have create an AppSynch API on AWS. I can easily query it using the console or some AWS specific package. However I would want to query it using a simple package such as e.g. urllib3. Its surprisingly hard to find anyone doing using a direct api…
smallbirds
  • 877
  • 12
  • 35
0
votes
1 answer

Serverless - Change the content before deploy

I'm using Serverless for working with our aws lambda / appsync. For Error Handling, we are keep erro code with message in a json file. The Codes will be unique. Something like this: //error-code.json { "1"": { code: 1, message: "Invalid User…
Shadab Faiz
  • 2,380
  • 1
  • 18
  • 28
0
votes
1 answer

Validating array input in AppSync Resolver Template

I have a query in my aws app-sync: input TestingInput { user_ids: [String]! } Now, I need to do 2 different validations here: Validate that the user_ids is an array of strings. Validate that all user_ids exists in database. For 1, I can use…
Shadab Faiz
  • 2,380
  • 1
  • 18
  • 28
0
votes
1 answer

Store error: the application attempted to write an object with no provided id but the store already contains an id of for this object

Note - I'm quite new to GraphQL and I've seen other stackoverflow questions of this error being reported but they were using Apollo. Here, I am using AWS Amplify and AppSync's own GraphQL client. So I couldn't use those solutions. tldr - I'm trying…
Ragav Y
  • 1,662
  • 1
  • 18
  • 32
0
votes
1 answer

DynamoBD/Amplify non-negative field and field validation on mutations

I am new to AWS in general, I am building a relatively simple application with Amplify, but I've used Google Firebase before. My question is: Is there a way to set a constrain for a field to be non-negative? I have an application that does…
0
votes
1 answer

Accessing external file in aws appsync template mapper

Currently, we are using a json file which as a lambda layer. Is it possible to access this lambda layer in appsync template? There will be alot of field in this json file. It is something like this: module.exports = { "INVALID_RFC": {"code":…
Shadab Faiz
  • 2,380
  • 1
  • 18
  • 28
0
votes
1 answer

AWS AppSync vtl make set null if argument is empty list

I want to update a 'person' item in my table. I want to update the persons name and his set of skills. It's also possible that we just use the updatePerson mutation to update the name. And we will update the skills later. At that point the argument…
xtra
  • 1,957
  • 4
  • 22
  • 40
0
votes
0 answers

How to get current user from dynamodb using appsync and cognito

I’m starting to learn AWS serverless and react native. My plan currently is to authenticate a user with cognito, then add a on boarding part where you can add your age, full name etc. This will then be posted to dynamodb as a user. I was then…
0
votes
1 answer

Amplify GraphQL API incompatible with iOS 14 deployment target? (flutter)

When using the package amplify_api 0.1.0, if the deployment target is anything other than 9.0, iOS app will not build. Removing the API dependency or using ios: 9.0 in the podfile results in a successful build. Anyone know what's wrong or how to fix…
DJSjr
  • 66
  • 5
0
votes
0 answers

AWSAppSync in swift, not fetching all the records that is in DynamoDB

A weird thing happening; I am trying to fetch all the records that do not contain '@' however, not all of the records are returned. so weird. This is my code: static func loadRateToUserDefault() -> Void { var appSyncClient: AWSAppSyncClient? …
0
votes
1 answer

Relationships with AwsCdk, DynamoDB and AppSync - Typescript and lambda functions

we are currently studying the stack: cdk, appsync and amplify to migrate our applications. In our initial tests, we were able to upload a graphql api with only appsync wit relationships and it was very smooth, nice and fast. When testing to build…
Gilvaju
  • 3
  • 1
0
votes
1 answer

How to verify if next query should be executed?

We have one appsync instance that execute use two lambdas as data source , the information its requested in this way query MyQuery { getOrder(userName: "user", uuid: "some uuid") { status } updateTicketNumber(terminalId: "1", userName: "some…