Skip to content

Compound filters #19

Open
Open
@gryphonmyers

Description

@gryphonmyers

I think there is a gap in the specification: it is not explicitly called out how compound filter values should be interpreted. Given /aura/tracks?filter[title]=Foo&filter[artist]=Bar should the server send all tracks with title matching "Foo" AND artist matching "Bar"? This would be the most intuitive behavior, but it's not specified.

Should clients be provided with a way to specify they want compound filters to be interpreted with an OR operator instead?

Another example: /aura/tracks?filter[artist]=Bar&filter[artist]=Baz. Would this keep the first value? Last value? Array of both? Assuming array, if we assume an array of values is always interpreted with an AND operator, then this specific query makes no sense... (unless wildcards are supported, but that's another issue). But with an OR operator available, this could be useful as it would allow clients to specify a number of desired values with one request.

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