Skip to content

Commit

Permalink
chore: update ent and ent/contrib
Browse files Browse the repository at this point in the history
This updates to v0.12.4 of ent and the latest version of ent contrib.
v0.12.4 contains a fix for ent/ent#3752 which
fixes compatibility with postgres 16
  • Loading branch information
mikhailswift committed Sep 26, 2023
1 parent 4a4d05f commit f032768
Show file tree
Hide file tree
Showing 79 changed files with 4,773 additions and 6,217 deletions.
5 changes: 3 additions & 2 deletions ent.resolvers.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package archivista
import (
"context"

"entgo.io/contrib/entgql"
"github.com/testifysec/archivista/ent"
)

Expand All @@ -31,11 +32,11 @@ func (r *queryResolver) Nodes(ctx context.Context, ids []int) ([]ent.Noder, erro
return r.client.Noders(ctx, ids)
}

func (r *queryResolver) Dsses(ctx context.Context, after *ent.Cursor, first *int, before *ent.Cursor, last *int, where *ent.DsseWhereInput) (*ent.DsseConnection, error) {
func (r *queryResolver) Dsses(ctx context.Context, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, where *ent.DsseWhereInput) (*ent.DsseConnection, error) {
return r.client.Dsse.Query().Paginate(ctx, after, first, before, last, ent.WithDsseFilter(where.Filter))
}

func (r *queryResolver) Subjects(ctx context.Context, after *ent.Cursor, first *int, before *ent.Cursor, last *int, where *ent.SubjectWhereInput) (*ent.SubjectConnection, error) {
func (r *queryResolver) Subjects(ctx context.Context, after *entgql.Cursor[int], first *int, before *entgql.Cursor[int], last *int, where *ent.SubjectWhereInput) (*ent.SubjectConnection, error) {
return r.client.Subject.Query().Paginate(ctx, after, first, before, last, ent.WithSubjectFilter(where.Filter))
}

Expand Down
24 changes: 14 additions & 10 deletions ent/attestation.go

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

32 changes: 32 additions & 0 deletions ent/attestation/attestation.go

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

Loading

0 comments on commit f032768

Please sign in to comment.