amplify-android
amplify-android copied to clipboard
Enabling soft deletion: `_deleted` value does not exist in my DynamoDB entries
I was following the How it works section video on Datastore, and I realized that in the demo they were using the field _deleted
which allowed for soft deletion. After a standard setup of my Datastore API, I cannot find this field, and I was wondering how I could enable soft deletion within my application.
Other default fields like __typename
, _version
, and _lastChangedAt
exist in my DDB table.
This is an example of an item in my schema:
type Institution @model {
id: ID!
name: String!
address: String!
country: String!
users: [User] @connection(name: "UserInstitution")
}
And the following is the transform.conf.json
file (in case it is useful).
{
"Version": 5,
"ElasticsearchWarning": true,
"ResolverConfig": {
"project": {
"ConflictHandler": "AUTOMERGE",
"ConflictDetection": "VERSION"
}
}
}
Thanks for the help!