Tag: Amazon Web Services
-
Promise.all is only executing 1 out of 3 promises I pass to it
0 I have an async function, in which I take some arguments. Based on what is passed as argument, I call another function. You can consider the structure to be something like this. async function createTaskReminder(val) { switch (val) { case 1: await call1(); case 2: await call2(); case 3: await call3(); } I call…
-
Authenticate Apollo Client to AWS AppSync with Cognito User Pools
5 I am trying to connect to my AWS AppSync API using the plain Apollo Client but I am not sure how to structure the authentication header correctly. So far I have followed the header authentication documentation here: https://www.apollographql.com/docs/react/recipes/authentication.html And have this code, which I adapted to include the token call to the Amplify authentication…
-
Alternatives to AWS Amplify DataStore with offline capabilities for GraphQL
1 I’ve developed a project using AWS Amplify and DataStore. It was a requirement that the app works offline, because most of my users are travelling in areas with poor or no signal. DataStore seemed like a perfect solution, but it has given me far too many problems. Performance is awful when dealing with more…
-
Golang Developer – Cigniti Technologies Inc – Plano, TX
Cigniti Technologies Inc Plano, TX $60 – $65 Accepts corp to corp applications, Contract: Independent, W2, 12 Month(s) Skills GoLang GraphQL PostgreSQL unit testing Multi – Threading Amazon Web Services gorilla Job Description Job Title: Golang Developer Duration: 12+ months contract Location: Plano, TX (DAY 1 ONSITE) In-person Interview is a must Job…
-
Authenticating Graphql using cognito user pool
0 I need help in connecting to Graphql(AWS AppSync) API using Amazon Cognito pool using Javascript/Nodejs. I am able to connect to Graphql using API key (API_KEY) as the authentication mechanism. But I need to change the Authentication mechanism to using Cognito pool (AMAZON_COGNITO_USER_POOLS). I know that we need to collect the JWT token and…
-
AWS Newbie Dynamo DB Design Implementation
1 Hi I am attempting to build a fintech app and am using a template I found here: https://github.com/aws-samples/aws-plaid-demo-app I am looking to modify the data base to better fit my needs and had a few questions about best practices for implementation before I start making major changes. The demo app seems to combine all…
-
AWS Appsync query with in or not in operator doesn’t exist?
0 I want to return all items that are not in my arrays. Some think like below but in graphql-aws world: query( collection(db, "users"), where("id", "not-in", […likedUserIds, …dislikedUserIds]) ) I tried: const { data } = await API.graphql( graphqlOperation(getUsers, { filter: { id: { ne: […likedUserIds, …dislikedUserIds]} }, }) ); But this says "Variable ‘ne’…
-
AppSync Enhanced Filtering resolver
0 My schema: type Mutation { createOrder(order: OrderDTO!): Order! } type Subscription { onNewOrder(minimumPrice: Float): Order @aws_subscribe(mutations: ["createOrder"]) } My Lambda resolver for createOrder mutation: exports.handler = async function (event: OrderEvent): Promise<OrderWithPrice> { const order = await orderRepository.createOrder(event); … return { …order, totalPrice: await calculateTotalPrice(order) } }; The user should pass minimumPrice parameter on subscription…
-
Query with array in graphql
0 I want to return all items that are not in my arrays. Some think like below but in graphql-aws world: query( collection(db, "users"), where("id", "not-in", […likedUserIds, …dislikedUserIds]) ) I tried: const { data } = await API.graphql( graphqlOperation(getUsers, { filter: { id: { ne: […likedUserIds, …dislikedUserIds]} }, }) ); But this says "Variable ‘ne’…
-
How to get only selected fields on graphql using javascript
-1 I need a basic query to take all users from graphql but only with selected fields such as email, name etc. I couldn’t figure out how it works, aws doc gives example about filtering but it uses id to filter. export const getUsers = async () => { try { const { data }…