Newest 'aws-appsync' Questions - Stack Overflow

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.

0
votes
0answers
15 views

How to create a GraphQL input where an attribute is an object in Swift using AWS Amplify

I am using aws-amplify as my backend for my iOS Application. In this application, there are user objects and event objects. Users can create events. In my event table below, it has an attribute "host"...
0
votes
1answer
13 views

How to use special character (-) in appsync enum?

I would like to represent locale information using appsync Type enum. However, there are some special inside locale information. e.g. the - in en-US, en-UK. If it is possible, I want to retain the ...
0
votes
1answer
48 views

How do i get my table's row information without an 'id'?

I've successfully been able to add new entries and update information using AppSync. However, I'm totally stumped when it comes to 'Get' information. So for example if i try: await API.graphql(...
1
vote
1answer
20 views

Search modifiers in AWS AppSync and GrahphQL

I am trying to develop a GraphQL API with AWS AppSync + Amplify. My model looks like - type AudioMetadata @model @searchable { id: ID!, title: String!, description: String!, category: ...
0
votes
0answers
29 views

GraphQL mutation that accepts an multiple level of array of object in one request

I need to be able to create a product and add it's levelwithskills (An array of objects which contains level name and array of skills) in a single request. I have this schema: input LevelData { ...
0
votes
1answer
24 views

Resolver Mapping Template development guidelines

Subject I'm using amplify with GraphQL and DynamoDB as backend which works through AppSync. AppSync generates json based on vtl and executes it (I don't know in fact what part of the service executes ...
0
votes
1answer
9 views

How to do BatchGetIem on dynamodb GSI using Appsync? [on hold]

I want to do BatchGetItem on Dynamodb GSI using Appsync . In there docs it is only given for hot to query the table.
0
votes
0answers
19 views

Amplify : How to add existing API (created by AWS console) to Angular project

I am creating an Angular project to use AWS AppSync by Amplify. I noticed that every time I create a new project, Amplify has to create a new AppSync API, which is inconvenient for development. I ...
0
votes
0answers
26 views

How many Api keys can be generated for AWS APP Sync [on hold]

All, We are developing a mobile application using React Native, we have over 8000 Active customers. We are using AWS Appsync for getting data from DynamoDb and using API Key for Authentication ...
0
votes
1answer
18 views

GraphQL error FieldsConflict: fields have different list shapes

I'm using AWS AppSync's GraphQL server with the following (simplified) schema: type Query { getIssue(id: String!): Issue } type Issue { id: String! data: IssueData! } type Event { id: ...
0
votes
0answers
12 views

Connecting AWS Appsync Graphql Link as a Gatsbyjs Datasource

Working to set up a GatsbyJS plugin that sources from AWS AppSync using IAM auth. I keep getting an error that I can't track down what the problem is. I don't have a ton of experience with graphql ...
0
votes
1answer
19 views

Query is returning Null

I am trying to run a query on the query editor in my AppSync console. This AppSync API connects to my Aurora Serverless. I have no idea why my mutation is returning null. This is my schema: input ...
1
vote
1answer
19 views

AWS AppSync: How to listen to change from DynamoDB (not by mutation)

I create AppSync API from Amplify Cli for my angular project. The website can subscribe to OnChangeListner where DynamoDB is updated by mutation. It works. async ngOnInit() { this.api....
0
votes
0answers
17 views

AWS AppSync GraphQL - using union as mutation return causes error

I'm creating a GraphQL schema using AWS AppSync and I want to use Union as mutation return. I'd like to write mutation this way: mutation addUpdateTariff($tariff: TariffInput!, $seasonalTimeTariff: [...
0
votes
0answers
26 views

how do you do nested objects in graphql - i'm using appsync and dynamodb

I have the following object and I want to create a schema for it that handles nested objects - what's the best way using graphql: { "type": "product", "id": "411e2a2b-37e8-421e-...
1
vote
0answers
33 views

how do I extract deeply nested type?

I'm using react-native, aws appsync and aws amplify autogenerated API.ts which includes lots of graphql query result types which are deeply nested. I want to pass a prop which is deeply nested in the ...
0
votes
0answers
26 views

Why would I use the CachePolicy returnCacheDataAndFetch for AWS AppSync queries?

I have started using the AWS Amplify toolkit on an iOS, SwiftUI prototype. The guide has this for runQuery: func runQuery(){ appSyncClient?.fetch(query: ListTodosQuery(), cachePolicy: ....
2
votes
2answers
24 views

What cases will cause AppSync to not return all matching records/items from the DynamoDB table?

We're seeing some odd behaviors where not all the items are being returned in an AppSync query. There are 31 items in the database table, but the following query only returns 10 items? query ...
1
vote
1answer
22 views

AppSync + DynamoDB: filter by owner

I'm trying to write a resolver template for a Scan that filters by owner. Here is what I tried so far (this is my request template): #set( $identityValue = $util.defaultIfNull($ctx.identity.claims....
0
votes
0answers
22 views

Appsync or Apollo for GraphQL based real time chat app with Serverless framework

I am evaluating best option to develop a real-time chat application back-end using Serverless framework with GraphQL and my front-end is Angular. My doubt is if I should use Appsynce or Apollo. My ...
1
vote
0answers
36 views

Creating a connection type in AWS AppSync to retrieve data from Aurora Serverless

so I have a Aurora Serverless DB in Amazon RDS. I would like to use this within GraphQL and set up connections between certain types. I.e, a User could have a list of Followers and that's used with a ...
0
votes
0answers
11 views

How to access AWS.AppSyc based GraphQL endpoint using AWS SDK for .Net

I created a AWS AppSync based GraphQL endpoint, which can be accessed by IAM users only. Now I want to consume this endpoint in C#.net. How can I access it via C#.Net. I already tried APIKey ...
0
votes
1answer
51 views

AppSync GraphQL query with nextToken

My schema.graphql file auto generated below query in graphql/queries.js file by running amplify push command. Here is the schema file that generates query automatically. schema.graphql type User @...
0
votes
1answer
44 views

How to sort on a field in list query in aws-amplify?

How to sort on a field in amplify graphql api? I am trying to sort on a field while getting a list of an model. Eg: Sorting on createdDate in listOrder query. Any help please?
0
votes
1answer
24 views

How to call an AppSync mutation with Cognito authentication using python?

Is it possible to calling an AppSync mutation with Cognito authentication using Python? How? I am trying to use boto3, but I don't found a way to execute graphql operations. https://boto3.amazonaws....
0
votes
1answer
24 views

VTL macro in AWS Appsync

I'm writing a request resolver for aws appsync, my macro isn't working I've tried reducing it to its simplest form as shown in the code below, it just returns #addArgs() rather than "test" #set( $...
0
votes
0answers
31 views

GraphQL query in swift IOS application using AWS app sync not executing (getting skipped)

I am trying to query dynamoDB using AWS App sync codegen feature in iOS app. DynamoDB resolvers have also been created. I am able to query the table from the app sync explorer, However when I execute ...
2
votes
2answers
78 views

AWS Amplify - AppSync & Multiple DynamoDB Tables

When initializing a new GraphQL backend via the Amplify CLI, the sample schema defines multiple types with the @model annotation. For example... type Blog @model { id: ID! name: String! posts: [...
0
votes
1answer
28 views

How to get unseen, nearby documents from a Amplify - AppSync - ElasticSearch - DynamoDB Stack?

Problem: Use Amplify.js from AWS. A Tinder similar app. Here you can find jobs close by. These may only be seen once. We should save what the user likes and dislikes. What I've already managed: I ...
0
votes
0answers
29 views

prevQuery is undefined error when using aws <Connect/>

I have been using the Connect component for a while now. And to this point it has always worked out just fine but recently I started getting an error on one of the components I didnt get before. Below ...
1
vote
1answer
53 views

AppSync query sortField: “ceatedAt” set to descending order

From this schema.graphql below it returns 10 posts from the oldest post to latest when I query userPosts. type User @model { id: String! posts: [Post] @connection(name: "UserPosts", sortField: "...
-1
votes
1answer
62 views

Use AWS Amplify and App Sync with existing Node Server using Mongodb

Currently, I'm developing a native application using React-Native. I've decided to go with AWS Amplify because of it's real time updates as well as its authentication. I also have a Web Application ...
0
votes
1answer
22 views

How to close or release AWSAppSyncClient in android

I'm using AWSAppSyncClient Service, and here is the singeleton object I'm using in the app client = AWSAppSyncClient.builder() .context(context) .awsConfiguration(awsConfiguration) ...
0
votes
0answers
29 views

Handle offline image upload using AppSync and S3

I am using AppSync and S3 for image upload. Looking for how to handle the image upload in offline mode. case1: I am using mutation createSignedS3Url mutation to get the signed URL and make a put ...
0
votes
2answers
40 views

AWS AppSync - How to query data by date range(Today to 30 days before)?

This is how my schema.graphql looks like. type Post @model @auth( rules: [ { allow: owner } ] ) { id: ID! author: User! @connection(name: "UserPosts") content: AWSJSON! ...
0
votes
1answer
12 views

Correct Proguard Rules for AWS AppSync with Cognito User Pool Authentication on Android

I have an Android App using the AWS AppSync SDK with the following gradle configuration to connect to a cloud backend. implementation 'com.amazonaws:aws-android-sdk-appsync:2.7.+' Access to the ...
0
votes
1answer
42 views

Aws Appsync Resolver : How to create a resolver to update item in list map (DynaMoDB)

I am creating multiple object in one table, I have here sample DynamoDB table named "User" with fields (firstname, lastname, email, companies), can someone know how can I create a resolver to add a ...
0
votes
1answer
23 views

Is there a way to integrate S3 Bucket with Appsync without using an extra AWS Lambda for checking authorization?

My Stack: AWS Appsync + AWS Lambda(to Mongodb) + custom OpenId-Connect Provider(also Lambda) What I am trying to achieve I would like to store some of the user data to the S3 bucket. I am hoping I ...
0
votes
1answer
47 views

Perfom get query with value other than key

Is it possible for me to use the get query to query for a value other than the primary key? Cuz it seems I can only pass in the id column but is there no way in which i could perform the get query ...
0
votes
2answers
64 views

AWS AppSync onUpdate Subscription not working on simulator

I am trying to run the subscription on Android. I am able to make all other queries run like create, update, list, etc on the android client but not subscription. However, on AWS Appsync console I can ...
0
votes
0answers
47 views

Tinder Backend with AWS Amplify - Get only unseen Cards possiblity

I'd like to use amplify.js. I'm currently at a standstill. I would like to build a simplified version of Tinder. Without superlike, without user prioritizing. I have users and jobs. A user should ...
0
votes
2answers
51 views

Lambda functions to query the GraphQL endpoint?

How can I use Lambda functions to query the GraphQL endpoint (AppSync) in Node.js? Which GraphQL Client should I use? I have seen AWS AppSync JavaScript SDK which seems to be for mobile app or react/...
0
votes
1answer
27 views

How to use getquery with amplify <Connect/> component in React

I have been trying to use the together with a getquery in react but I can't get it to work. Below is the code I put together const input = { id: this.props.Id }; return ( ...
1
vote
1answer
40 views

AWS AppSync only returns 10 items on query on connection

I'm new to AppSync and trying to see how this works and what's the proper way to set this up. I created schema.graphql looks like below. type User @model { id: String! following: [String] ...
0
votes
1answer
59 views

AppSync - creating nested mutation with array and objects?

Does AppSync support nested single mutation? I want to call a single mutation which will insert records into two tables, eg: User and Roles tables in DynamoDB. Something like this for example: ...
-1
votes
1answer
38 views

Using an exisiting AppSync API w/ Amplify

Using: AppSync, DynamoDB, and Lambda So I am a bit stuck on how to integrate AppSync within Amplify in React Native. I have an existing API within AWS AppSync that I created on the console. This API ...
0
votes
0answers
13 views

Amplify cogden is not creating my custom resolvers

I've created a GraphQL schema with custom resolvers on the AppSync console. I ran the amplify codgeneration commands and my schema was successfully created on my local project (queries, mutations, ...
0
votes
1answer
12 views

How can I tell which API is using my resolver template?

I have a resolver template that I use across several AppSync APIs using the Serverless framework. The same resolver template is deployed to each of my dev, stage, and production APIs. I have a ...
0
votes
1answer
34 views

Fine Grained Access to a single Item - GetItem, DynamoDB Resolver AppSync

How do I provide Fine Grained Access to a Single item in AppSync. I have the following resolver for the GetItem operation. { "version": "2017-02-28", "operation": "GetItem", "key": { ...
0
votes
1answer
59 views

Get Dynamically DynamoDB table name in request and response mapping template using a BatchGetItem

I am using microservice with folder structure. Microservice => resolvers -> Media/Image/get-images/request.vtl Media/Image/get-images/response.vtl templates -> services.yaml ...