Skip to content

.get(), .all(): allow search? #25

Description

@wmertens

.all() is rarely used and has no parameters, so it would be a nice alias for .searchAll(attrs, options) when arguments are passed.

Likewise, .get() always has a scalar for the first argument, so if the first argument is an object, .get(attrs, options) could be an alias for .searchOne(attrs, options)

@Dzieni thoughts? One or the other or both or none?

Activity

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

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