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

Is it possible to specify 2 Cognito user pools with auth annotation in schema.graphql in Amplify?

I have a question about Amplify, especially, how to connect two Amazon Cognito user pools from the same API(AppSync) define in which Amazon Cognito user pool authentication is required in schema.graphql. The following picture is what I want to…
Satoru Kikuchi
  • 1,069
  • 2
  • 21
  • 33
0
votes
1 answer

Pricing for AWS AppSync GraphQL Subscriptions (Real-Time Updates): Per device or per subscription?

Based on aws appsync pricing https://aws.amazon.com/appsync/pricing/ we're charged 8 cents per million minutes of connection to AppSync. If we open multiple subscriptions on a single device, does each subscription contribute to the "connected…
Sean
  • 107
  • 7
0
votes
0 answers

AWS Graphql Error - Amplify mutations cannot write to dynamoDB

I am new to the AWS world and have been working on an Amplify project for a few months. Project uses Amplify front-end with Appsync / GraphQL and dynamodb all set up via the console in Cloud9. Read access to the backend using the graphql queries…
0
votes
1 answer

AWS Java SDK - How to Connect a dynamodb through AppSync

We have a table in DynamoDB and we need to fetch data from the table using AppSync using AWS Java SDK. AWSAppSync awsAppSyncClient; public UserManagementAppSyncService(AWSCredentialsProvider credentialsProvider) { this.awsAppSyncClient =…
Manushi
  • 597
  • 1
  • 7
  • 26
0
votes
0 answers

How to Pull changes done on the aws appsync console to my local machine?

I have made changes to my AppSync project on the AppSync web console and I want to pull it onto my local machine. I have seen the similar questions but there is no proper solution for this issue can anyone help me figure this out.
0
votes
1 answer

Query does not return some items from DynamoDB via GraphQL

May I please know what is the reason why are items in DynamoDB not being fetched by GraphQL? When searching via the DynamoDB console interface, I could easily see and query the item in there but once used in GraphQL, some items are not showing. Mind…
daniel-bbt
  • 11
  • 3
0
votes
1 answer

AWS AppSync RDS - Passthrough output resolver for json SQL result

Is it possible to create some sort of passthrough response resolver for an RDS datasource. The result of the query is 1 row and 1 column of type json which I would like to be the result of the graphql query. Eg. schema could be type Query { …
Peter
  • 788
  • 7
  • 17
0
votes
0 answers

Unable to retrieve data from AWS Neptune

I have created an AWS Appsync graphql api which on being called will run an aws lambda function and that function will query data from AWS Neptune using query language Gremlin but i am unable to retrieve data from aws neptune. This is my lambda…
0
votes
1 answer

How to return an array of nested items from every item of a parent object using AppSync?

I am currently using Amplify with AppSync, and I want to grab Bs from every A item created, and populate them as an array of "items" as a result. I searched up pipeline resolvers to deal with those, but got no luck since they are mostly based on…
0
votes
1 answer

AWS Appsync - IAM permission

I'm trying to protect my AWS Appsync API with IAM. All is fine on query level, but is it possible to restrict a client also on type level (fields of return type)? This is a schema: type Query { getUserById(id: String): User } type User { …
Rob
  • 35
  • 1
  • 5
0
votes
0 answers

error when create a mutation with AWS amplify DataStore and GraphQL: "Variable 'input' has coerced Null value for NonNull type 'ID!'"

I am trying to create a web application with aws amplify datastore, where blogs are created, posts and comments are created, when I try to publish a post within a blog, I get an error and the answer that amplify throws me is that the field "blogID"…
0
votes
1 answer

Vanilla NodeJS Appsync client error while making queries/mutations

I'm trying to hit my Appsync GraphQL endpoint with a plain nodejs client that signs and sends the requests. There it is: var https = require("https"); let AWS = require("aws-sdk"); let urlParse =…
0
votes
1 answer

How can I response to client based on what fields they are querying in graphql?

I am using AWS appsync for graphql server and have schema like: type Order { id: ID! price: Int refundAmount: Int period: String! } query orders (userId: ID!) [Order] It is to support query orders based on user id. It responses an…
Joey Yi Zhao
  • 37,514
  • 71
  • 268
  • 523
0
votes
1 answer

AWS AppSync: Add multiple query string items in request mapping template not work

I have a request mapping template as follow: This is mapped to a GraphQL query called getPost { "version": "2018-05-29", "method": "GET", ## E.G. if full path is https://api.xxxxxxxxx.com/posts then resourcePath would be /posts ** …
Ellery Leung
  • 617
  • 3
  • 10
  • 23
0
votes
1 answer

User data storage design pattern AWS AppSyn with GraphQL and CognitoAuth

I'm building a serverless web app for the first time on my free time. I have made my whole login workflow using AWS Cognito with Amplify but now I'm embarrassed. I want like to stock user related data outside of cognito (Like Birthdate, Display…
Biboozz
  • 1,096
  • 2
  • 9
  • 18