Skip to content

ordering for custom value classes #142

Open

Description

@jeocentric

Here is what the documentation indicates regarding ordered query:

ordered query

query {
  (entity: MyEntity) =>
    where(entity.attribute like "A*") select (entity) orderBy (entity.attribute)
}

If the entity attribute doesn’t support ordering, a compile error with be thrown.

There's no ordering support for a custom entity attribute.
That's to say if the attribute is neither a "String" nor an "Int", but a custom attribute, let's say a "Person" class for instance, the "desc" function won't work on such a class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions