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

Raise a notice for unreachable scope #21

Open
Speedy37 opened this issue Nov 17, 2017 · 0 comments
Open

Raise a notice for unreachable scope #21

Speedy37 opened this issue Nov 17, 2017 · 0 comments

Comments

@Speedy37
Copy link
Contributor

Sometime while writing a query scope, a little mistake is made, a notice about it would be nice

Example:

{
  where: { $instanceOf: "Person" }
  scope: {
     Person: { '.': ['_cats'] },
     Cat: { '.': ['_name'] },
  }
}

Cat can't be a root object, thus the scope defined for Cat is unreachable.

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

No branches or pull requests

1 participant