Once you've created your relation definitions, you can start creating relations between resources and targets. Then, you can finally
add the access control checks to your application. We'll start with looking at the relevant objects used in creation and checking of relations.
When creating a relation, we have the AuthzRelation type which defines a relation between a resource and a target.
When checking to see if a relation exists, one of the options involves the AuthzRelationQuery type which is used to query the service to see if a given relation exists.
The function that takes this object in will return it with the hasRelation boolean field set to true or false depending on whether the relation exists or not.
Other functions include the ability to check what relations exist for a given resource or target.