I am currently developing an eCommerce App in React Native Expo that utilizes AWS amplify and I am trying to connect the API and database to it.
After running 'amplify push', I get the following error message:
� An error occurred during the push operation: Unknown directive 'connection'. Either remove the directive from the schema or add a transformer to handle it.
For some reason, it doesn't recognize @connection as its own directive.
The block of code in the schema.graphql that utilizes this directive is the following:
type CartProduct @model @auth(rules: [{allow: public}]){
id: ID!
userSub: String!
quantity: Int!
option: String
productID: ID!
product: Product @connection(fields: ["productID"])
}
I haven't found a solution anywhere and I appreciate anyone who can help me with this.