Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 24 additions & 18 deletions tavern/internal/ent/gql_collection.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

104 changes: 70 additions & 34 deletions tavern/internal/ent/gql_pagination.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions tavern/internal/ent/schema/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package schema
import (
"entgo.io/contrib/entgql"
"entgo.io/ent"
"entgo.io/ent/schema"
"entgo.io/ent/schema/edge"
"entgo.io/ent/schema/field"
)
Expand Down Expand Up @@ -55,6 +56,14 @@ func (Task) Edges() []ent.Edge {
}
}

// Annotations to configure code generation
func (Task) Annotations() []schema.Annotation {
return []schema.Annotation{
entgql.RelayConnection(),
entgql.MultiOrder(),
}
}

// Mixin defines common shared properties for the ent.
func (Task) Mixin() []ent.Mixin {
return []ent.Mixin{
Expand Down
Loading