warrant-dev / warrant

Warrant is a highly scalable, centralized authorization service based on Google Zanzibar. Use it to define, enforce, query, and audit application authorization and access control.
https://warrant.dev
Apache License 2.0
1.12k stars 39 forks source link

Add a `Relation` attribute to `QueryResult` (for internal use) #306

Closed kkajla12 closed 6 months ago

kkajla12 commented 6 months ago

Describe your changes

This PR adds a new Relation attribute to the QueryResult type. This new attribute is useful for internal use of query to help determine the relation of the result when a wildcard is used in the query string (e.g. select * of type user for document:X).

Issue number and link (if applicable)

N/A