Tag: Amazon Web Services
-
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 } […]
-
Lambda returning wrong data – type mismatch error, expected type LIST
0 In my schema.graphql I have set query: type Query { listCourses(param1: String, param2: String): [Course] and type Course: type Course { id: ID! fullname: String shortname: String idnumber: String summary: String } And in my frontend application I am calling this query that triggers lambda: async getDataByCodeType() { const query = /* GraphQL */ […]
-
AWS amplify graphql appsync – do not return deleted items?
9 I am using AWS amplify with graphql and appsync. When I do a standard list query, appsync includes deleted items in the list of items it returns. What can I do to make it return only items that are not deleted? I tried this query, but it throws an error: query MyQuery($filter: ModelFrameFilterInput = […]
-
Opensearch 2.7 location search using @searchable through graphql
0 I’m developing a React Native app using the AWS Amplify GraphQL API. Whenever a user posts, I also capture their latitude and longitude. I’d like to use this data to identify and show other users within a 20-mile radius of that user. I discovered that OpenSearch can help with this, and by adding the […]
-
400 response without any context in AWS Appsync where Lambda is a Data source
0 I’m getting the below response in AWS Appsync console, when i try to invoke graphql API. Request failed with status code 400 Query: query MyQuery { getUserData(inputArguments: $inputArguments) { __typename } } Variables: { "inputArguments": { } } I’m unable to debug it as Lambda is not being invoked. amazon-web-services aws-lambda graphql aws-appsync Share […]
-
Flutter Data Model Doesn’t Update When Amplify Pulled
0 I’m using the AWS GraphQL database for my Flutter application. When I create my database on the AWS panel and type ‘amplify pull’ on the Flutter project terminal, there is no problem initially. All data models are created automatically successfully. The problem is, that I have created new data models on GraphQL and when […]
-
Java Developer with GraphQL, Angular – PrimaSolv – Remote
PrimaSolv Remote Contract: W2, Corp-To-Corp, Independent Work from home Skills JavaScript Amazon Web Services Artificial intelligence Apex Microservices Java UI Cloud computing Oracle Application Express Business process Job Description Hi, My name is Suasini and Iam contacting you regarding a Remote job opportunity. PrimaSolv is a US based IT services company and provides a broad […]