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.
Questions tagged [aws-appsync]
1785 questions
0
votes
2 answers
GraphQL mutation returning null on update
I am using Amazon's Amplify library for GraphQL. Create mutations are returning
non-null data in the response, but update mutations return null data in the
response.
Amplify.API.query(ModelQuery.list(Login.class), response -> {
boolean isThere =…

Tushar Lathiya
- 940
- 9
- 26
0
votes
1 answer
Create complex argument-driven queries from AWS Lambda?
Look for // HERE IS THE PROBLEM PART sentence to find code that is the problem.
I am trying to implement AppSync using AWS Lambda (that connects to RDS Postgres server) as a data source. I want to create puKnowledgeFile query that will update my…

Petro Ivanenko
- 637
- 2
- 8
- 19
0
votes
1 answer
serverless-appsync-plugin 'pipeline' deployment error
I am using serverless to deploy an Appsync API using 'PIPELINE', for use as an API lambda-functions. This plugin https://github.com/sid88in/serverless-appsync-plugin is used to deploy Appsync with the ability to use 'pipeline'. I used the…

Vitaliy
- 3
- 1
0
votes
1 answer
Using multiple authorization types with AWS AppSync GraphQL APIs
This blog post shows how to set multiple authorisation types to models and fields in graphql transform.
Lets say I have an @model Blog
type Blog @model {
id: ID!
adminUserId: String
name: String!
posts: [Post] @connection(keyName:…

Simon Verhoeven
- 347
- 4
- 16
0
votes
1 answer
Graphql queries works fine on AppSync Console but throw errors on client side
My schema and queries are working fine on amplify console but throwing a type mismatch error on the client side. This happens only when there are more than one records in the object returned
Data successfully returned when there's only one…

Shawn Yap
- 969
- 7
- 12
0
votes
1 answer
Cannot connect apollo client to aws appsync
I have a web app using aws appsync as backend and react + apollo client (v3) as front end. But when I try connecting apollo client to appsync, I get an error message from the library:
./node_modules/aws-appsync-react/lib/offline-helpers.js
Module…

Stanley Luo
- 3,689
- 5
- 34
- 64
0
votes
1 answer
How to filter data ignoring the data that does not match
I have this query:
query ListFreightDriverTrucks($state: String! $tons: Float!) {
listFreightDrivers(filter: {
state: {
contains: $state
}
}) {
items {
name
city
state
trucks (filter: {
tons: {
…

Andrés Montoya
- 4,079
- 4
- 18
- 33
0
votes
1 answer
Unable to query dynamodb GSI in lambda locally
So I added a lambda function category using the amplify CLI, in order to query data from the GSI(Global secondary Index) I created using the @key directive in the graphql schema. Whenever I try mocking the function locally using the amplify mock…

mbappai
- 557
- 1
- 5
- 22
0
votes
1 answer
Graphql mutation error in aws amplify appsync
I am trying to insert/mutate a data using graphql to a dynamodb, see image below having error while inserting data. I am confused if the error exist while creating the schema or while mutating the data. The table was created using amplify
this is…

nyx97
- 179
- 1
- 13
0
votes
1 answer
How can I split the appsync into multiple stack?
I have a project to deploy a appsync API using this plugin (https://github.com/sid88in/serverless-appsync-plugin). And I am looking for a solution to split all infra. into multiple stacks (multiple serverless.yml file).
My project structure looks…

Joey Yi Zhao
- 37,514
- 71
- 268
- 523
0
votes
1 answer
How to form key using query arguments in Dynamodb resolver request mapping?
Schema snippet:
type Query {
getPCSData(country: $String, year: $String, payCycle: $String): PCSDataOutput
}
Dynamodb Resolver:
PCSDataResolver:
Type: AWS::AppSync::Resolver
DependsOn: PCSGraphQLSchema
Properties:
ApiId:
Fn::GetAtt:…

Dev Kumar
- 93
- 7
0
votes
1 answer
AWS Amplify Avoid @connection queries on an @key or index query generating a list
I have a model for orders, I made an index that would let me query the orders based on what month and year they were created.
Now that I am able to query those orders, I want to avoid unnecessary connection (order-vendor) queries every time I query…

Jtaw Cañada
- 147
- 1
- 7
0
votes
1 answer
Field resolver in Appsync using the same query output as argument
GraphQL Schema:
type Query {
getCustomer(customerId:Int!):Customer
}
type Customer {
customerId : Int
customerName : String
emailId: String
orderId: Int
orderDetails(limit:Int):[OrderDetails]
}
type OrderDetails…

Tanveerr Ahamed
- 1
- 1
0
votes
1 answer
Storing a property which is an array of strings but options using aws amplify datastore
I am using aws amplify datastore to connect my app to a dynamodb backend.
I have an Item type which has a property named tags, which is defined as Array of strings
type Item @model {
id: ID!
content: String!
tags: [String]
}
The tags property…

Mukesh Soni
- 6,646
- 3
- 30
- 37
0
votes
1 answer
Ssocket exception in AWS AppSync in flutter
I am working on flutter application with AWS AppSync in that I am using the end URL of AWS server but when I try to execute the query I am getting below error
I am working in proxy setting but is not effecting this URL it's working perfectly in…

Ravi Jat
- 61
- 1
- 12