You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 7, 2022. It is now read-only.
// This is still ok:
horizon('public_messages').fetch()
// These queries no longer match the template:
horizon('public_messages').watch()
horizon('public_messages').findAll({type: "announcement"}).fetch()
horizon('public_messages').order("year").fetch()
horizon('public_messages').order("year").above({year: 2015}).fetch()
.find() isn't included in the queries that no longer match the template. And here:
A basic rule with a query template looks like this:
.find() isn't included in the queries that are implicitly allowed. So it's ultimately unclear whether or not .find() is allowed or not. Was this just an accidental omission? Or was .find() not included in the permissions templates and one should use .findAll instead?
The list wasn't intended to be exhaustive, it was just a bunch of example queries. But since it has caused confusion, we should probably add a find query to it.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
There are some cases where you'd want to only allow
.find
versus.findAll
in your queries. But in the example here:.find()
isn't included in the queries that no longer match the template. And here:.find()
isn't included in the queries that are implicitly allowed. So it's ultimately unclear whether or not.find()
is allowed or not. Was this just an accidental omission? Or was.find()
not included in the permissions templates and one should use.findAll
instead?Come across this from this question on SO.
@mlucy @Tryneus
The text was updated successfully, but these errors were encountered: