Unable to push or pull changes in amplify

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 the end I got an error:
Syntax Error: Expected Name, found "="

I then deleted this line but when I push or pull with amplify push/pull I get this error


Load 4 more related questions


Show fewer related questions

0



Leave a Reply

Your email address will not be published. Required fields are marked *