great work here, but i wanted to make you aware of some possible issues.
first with realize I had to use the following
commands: install: status: true method: go build -o build/gql-server run: status: true method: build/gql-server
otherwise exec not started occurs.
exec not started
For mysql users some modifications are needed namely the base.go should have the following ID
base.go
ID uuid.UUID `gorm:"primary_key;type:varchar(36)"`
also you need to implement the BeforeCreate
// BeforeCreate will set a UUID rather than numeric ID. func (base *BaseModel) BeforeCreate(scope *gorm.Scope) error { uuid, err := uuid.NewV4() if err != nil { return err } return scope.SetColumn("ID", uuid) }
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
great work here, but i wanted to make you aware of some possible issues.
first with realize I had to use the following
otherwise
exec not started
occurs.For mysql users some modifications are needed namely the
base.go
should have the following IDalso you need to implement the BeforeCreate