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

allow rule to raise NoResult to indicate that for the given inputs, a particular rule can not return an output #36

Open
dwiel opened this issue Jan 25, 2016 · 0 comments

Comments

@dwiel
Copy link
Owner

dwiel commented Jan 25, 2016

This is useful in the case of a SQLQuery where the constraint is moved into the query and out of graphcore. In this case the graphcore rule needs to be able to tell graphcore that the inputs have no valid output and so filter the results. There are other cases where this may be desirable. For example, in the query:

{
    'user.id': 1,
    'user.parent.name?': None,
}

it is possible that the user has no parent entered and so just by asking for the parent you are constraining the set of users.

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

No branches or pull requests

1 participant