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 = {_deleted: {ne: true}}) {
listFrames(filter: $filter) {
items {
_deleted
name
id
}
}
}
Here is the error message:
"message": "Validation error of type BadValueForDefaultArg: Bad default value ObjectValue{objectFields=[ObjectField{name='_deleted', value=ObjectValue{objectFields=[ObjectField{name='ne', value=BooleanValue{value=true}}]}}]} for type ModelFrameFilterInput"