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

How to do request queries by reference? #2

Open
dmitrizagidulin opened this issue Mar 20, 2020 · 1 comment
Open

How to do request queries by reference? #2

dmitrizagidulin opened this issue Mar 20, 2020 · 1 comment

Comments

@dmitrizagidulin
Copy link
Contributor

Placeholder for the discussion -
When doing a QueryByExample request, how would you pass in the example by reference? (As opposed to by value, as is currently in the spec.)

@dlongley
Copy link
Contributor

@dmitrizagidulin -- Per our discussion, we should briefly describe two approaches to this problem:

  1. Shared directories for queries where query handlers have to know about the directories and do dereferencing
  2. Shared directories for queries where query handlers don't have to know about the directories and query submitters just do the dereferencing

Both should achieve the use case of "stored" and "reusable" queries. I'm in favor of the second approach because it's a better separation of concerns, reducing overall complexity to implement a query handler and reducing attack surface.

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

2 participants