mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
Summary: more descriptive output on marshaling failures. Reviewed By: alexsn Differential Revision: D16782294 fbshipit-source-id: 4ac3fbb3ef152d59bada257a9f0d8ccde5e95ae9
17 lines
188 B
Go
17 lines
188 B
Go
package failure
|
|
|
|
import (
|
|
"fbc/ent"
|
|
"fbc/ent/schema/edge"
|
|
)
|
|
|
|
type User struct {
|
|
ent.Schema
|
|
}
|
|
|
|
func (User) Edges() []ent.Edge {
|
|
return []ent.Edge{
|
|
edge.To("panic", User{}.Type),
|
|
}
|
|
}
|