Tag: aws-amplify
-
AWS Amplify: The variables input contains a field name that is not defined for input object type
6 I dont understad what happen here. This is my schema: type MonthResume @model @auth(rules: [{allow: owner, identityClaim: "sub"}]){ id: ID! incomes: Float! spendingByCategory: [Category] } type Category @model @auth(rules: [{allow: owner, identityClaim: "sub"}]){ id: ID! name: String! amount: Float! } This is the autogenerated update mutation that Amplify gives to me: export const updateMonthResume…
-
How to add description comments on schema.graphql on AWS Amplify CLI At time of amplify Push
0 I need to add description of types comments on my local project with amplify, after at time of push i need upload the comments on the schema too, for generate the JSON of Introspection schema with the comments, I already make this with AWS AppSync manually, but I need make that on amplify push……
-
How can I use the IN filter with an Amplify GraphQL query?
0 I’m trying to fetch multiple transactions with an array of IDs but i might do something wrong and I’m facing the following error : ERROR GraphQL Error: [ { path: null, locations: [ [Object] ], message: "Validation error of type WrongType: argument ‘filter.id’ with value ‘ObjectValue{objectFields=[ObjectField{name=’id’, value=ObjectValue{objectFields=[ObjectField{name=’in’, value=VariableReference{name=’ids’}}]}}]}’ contains a field not in ‘ModelIDInput’:…
-
Multiple OR/AND filter in AWS Amplify GraphQL
1 with a simple schema like this: type Ticket @model{ id: ID! @primaryKey title: String! description: String! state: State @default(value: "new") priority: Priority } enum Priority { low medium high emergency } enum State { new pending closed waiting suspended } How can I filter my query in order to get the tickets that have…
-
How to retrieve data where a record field matches with any item in the given list?
0 How to get all records from AWS Amplify GraphQL API where the field(example busNumber) of a model matches with any item in the given list. Note:- busNumber is of type String I am using AWS client side library to perform this in Kotlin in android studio. My Dependencies are:- implementation ‘com.amplifyframework:core:1.4.0’ implementation ‘com.amplifyframework:aws-api:2.14.1’ This…
-
Issue with GraphQlAPI and Cognito Identity Pool
0 we’re trying to connect an Amplify Studio project to the Visual Studio Code Interface using the Amplify CLI and we run into the following problem when trying to fetch data. We’ve updated our code and configured the AWS as well. The current error that we’re running into : import { API, graphqlOperation } from…
-
Unable to push or pull changes in amplify
0 I need some help. I tried to set a default value with = in aws graphql API with AWS Amplify like type User @model @auth(rules: [{allow: public}, {allow: private, operations: [read]}]) { id: ID! isFavorite: Boolean logo: String status: String = "active" # the issue line } then I pushed the code but in…
-
How to type the event of a serverless resolver sent from an Amplify GraphQL call
2 I am trying to type the event object coming from my AWS Amplify/NextJS front-end. It is sent via Amplify/GraphQL and being received in a NodeJS AWS Lambda. The typescript interface contained in import { AppSyncResolverEvent } from "aws-lambda"; – but this doesn’t quite match the event object that’s being received. Can someone please advise…
-
AWS Amplify and Flutter: Parsing Issues with Nested GraphQL Query Results
0 I am trying to execute a simple GraphQL query in my Flutter project. The goal is to get a list of customers with a nested list of devices. However, the results are not being parsed properly and i found some inconsistency between appsync and my project appsync calls. I am pretty new to aws…
-
AWS Amplify GraphQL API: Unable to retrieve the first 10 items (with `beginsWith` filter)
0 Here’s my schema: type Post @model { createdAt: AWSDateTime! hash: String! version: Int @default(value: "0") @index(name: "byVersion", sortKeyFields: ["createdAt"]) } Here’s the generated query that AWS Amplify generates: export const postsByVersionAndCreatedAt = /* GraphQL */ ` query postsByVersionAndCreatedAt( $version: Int! $createdAt: ModelStringKeyConditionInput $sortDirection: ModelSortDirection $filter: ModelPiecePostFilterInput $limit: Int $nextToken: String ) { postsByVersionAndCreatedAt( version:…