Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Filters, Aliases #107

Open
martindale opened this issue Nov 10, 2015 · 0 comments
Open

Add Filters, Aliases #107

martindale opened this issue Nov 10, 2015 · 0 comments

Comments

@martindale
Copy link
Member

Resources should be filterable, allow for aliases of these filters.

Proposal:

maki.define('Play', {
  attributes: {
    state: { type: String , enum: ['queued', 'playing', 'played', 'skipped'], default: 'queued' }
  },
  filters: {
    'playing': { state: 'playing' }
  }
}

...would add a new endpoint at /plays/playing that serves only documents with state "playing", identical to a query of /plays?state=playing.

Not sure if this is a good idea, as it doesn't "feel" pure. Feedback appreciated.

@martindale martindale added this to the 0.3: Prototype milestone Aug 13, 2018
@martindale martindale added the 0.4 updates for @fabric/core label Jan 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant