Troubleshooting
This is a list of frequently asked questions and their short explanations.
When a single field is "Not Authorised!" the entire parent object returns null.
This occurs when a non-nullable field (specified in the schema) returns a null value (due to GraphQL Shield blocking the field's value). GraphQL is a strongly typed language - the schema serves as a contract between client and server - which requires that the server response follow the schema definition.
See #126 and #97 for more detailed explanations.
A rule is executed only once even though the dataset contains multiple values (and thus should execute the rule multiple times)
This occurs because of caching. When the cache is set to contextual
only the contextual variable of the rule is expected to be evaluated. Setting the cache to strict
allows the rule to rely on parent and args parameters as well, while setting the cache to no_cache
won't cache result at all.
Last updated on October 10, 2022