Skip to content

[TODO] Change composition to be more functional #1

@crozzy

Description

@crozzy

Currently the composition methods will modify the query instead of returning a new query. For a library such as this where saving space isn't really a problem but side-effects definitely could be, function is probably the way to go.

eg.

query.AddFilter(filter)

Becomes

query = query.WithFilter(filter)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions