Skip to content

enhancement for "distinct" values in return statement #113

Description

@shaharido1

Hello,
A possible nice simple enhancement could be adding a "distinct" flag to the query. Something along this lines ->

https://github.com/threatify/arango-orm/blob/master/arango_orm/query.py#L251

        if self.is_distinct:
            return_index = aql.find("RETURN") + len("RETURN")
            print(aql)
            aql = aql[:return_index] + ' distinct(' + aql[return_index:]
            aql = aql + ")"

What do you think?

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