Skip to content

Handle "distinct" #12

@FloGou

Description

@FloGou

When we query with "distinct", the array of objects returned doesn't fit the model but the ORM still tries and cast it. This is a problem.

We could implement a .distinct(field) at the manager level. This would give the benefit of being able to cast to the nested property type if needed.

A simpler approach would be to have a getRaw which would not try to build object or an option on the get method. (We might end up needing it anyway)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions