Did this in graphql.schema
qty: Int @default(value: "0")
And got this error after amplify push
✖ An error occurred when pushing the resources to the cloud
🛑 An error occurred during the push operation: Unknown directive "default".
Unknown directive "default".
and yet AWS documentation shows
https://docs.amplify.aws/cli/graphql/data-modeling/#assign-default-values-for-fields
Steps Taken:
- Amplify CLI version is at the latest version i.e. 6..4.0
npm i @aws-amplify/graphql-default-value-transformer