Skip to content

Update().Sort() + Projection Problem #65

Closed

Description

@malikhan-dev

in the following lines of code, update and sort has no effect. this is specifically happens when i use the Projection function. otherwise the operators works fine.

newUsers = collections.Project[Person, SysUser](
		collections.From(&personList).
			Where(expr.Prop("Identifier").NumBigger(0).Predicate()).Take(1).
			Sort(expr.Prop("Identifier").Less().Predicate(), true).Update(expr.Prop("Name").SetString("Updated").Predicate()),
		MapPersonToSysUser,
	)

Activity

  1. malikhan-dev commented on Jul 23, 2026

    @malikhan-dev
    OwnerAuthor

    thats a problem with the projection function. we are fixing the bug and until the release of Zen-QL 2.0.6 and Thor Collection Api 2.0.6 it is suggested that dont use these operators together. although the fix will arrive very soon!

  2. changed the title [-]Some Operators Has No Effect While Projecting them[/-] [+]Update().Sort() + Projection Problem[/+] on Jul 23, 2026
  3. self-assigned this
    on Jul 23, 2026
  4. added 2 commits that reference this issue on Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions