BlockedQuery is used for data to a block query. It involves a regex pattern to filter queries before they're executed.

This datatype is used by the addToBlocklist() and addToBlocklistById() mutation fields, as well as the blockedQueries() query field.

Table: BlockedQuery

ParameterTypeRequiredDefaultStabilityAvailabilityDescription
expiresAtDateTime  Long-Term The date and time in which any matching queries will cease to be blocked.
expiresInMillisecondsInt  Long-Term The amount of milliseconds until any matching queries won't be blocked.
idStringyes Long-Term The unique identifier of the blocked query.
limitedToOrganizationBooleanyes Long-Term Whether the blocked query should be limited to the organization.
organizationOrganization  Long-Term The organization associated with the view, if any. See Organization.
patternStringyes Long-Term The exact or regular expression pattern used to match queries to block.
typeBlockedQueryMatcherTypeyes Long-Term How the pattern should be matched (e.g., as a regular expression). See BlockedQueryMatcherType .
unblockAllowedBooleanyes Long-Term Whether the current user is allowed to unblock the query.
viewView  Long-Term The related view, if any. See View.