contrib icon indicating copy to clipboard operation
contrib copied to clipboard

feat/multiple edge ordering fields

Open Gitigi opened this issue 2 years ago • 1 comments

Feature

Ability to set multiple term for ordering by edge

Usecase

I have a field that I need to order by multiple edge fields

Solution

pass a list of order terms separated by comma(,)

edge.From("role", GroupRoleType.Type).
	Ref("grouproles").
	Field("role_id").
	Required().
	Unique().
	Annotations(
	    entgql.OrderField("ROLE_HIERARCHY,ROLE_TARGET"),
	)

Gitigi avatar Dec 05 '23 13:12 Gitigi

Is there an expected timeline for merging this, or are there any blockers?

boostvolt avatar Aug 18 '24 20:08 boostvolt