The blockedQueries() GraphQL query fetches the list of blocked query patterns.

For more information on blocking queries, see the Blocking Queries documentation page.

Syntax

Below is the syntax for the blockedQueries() query field:

blockedQueries: [BlockedQuery!]!

Given Datatypes

For the given datatype, BlockedQuery, there are several parameters that may be given. Below is a list of them along with their datatypes and a description of each:

Table: BlockedQuery

ParameterTypeRequired[a]DefaultDescription
idstringyes The unique identifier of the blocked query.
expiresAtdatetime  The date and time in which any matching queries will cease to be blocked.
expiresInMillisecondsinteger  The amount of milliseconds from now in which any matching queries will cease to be blocked.
patternstringyes The exact or regular expression pattern used to match queries to be blocked.
typeBlockedQueryMatcherTypeyes Whether the pattern should be matched exactly or interpreted as a regular express: EXACT, or REGEX.
viewView  The related view, if any (see View Table).
organizationOrganization  The organization associated with the view, if any (see Organization Table).

[a] Some arguments may be required, as indicated in this column. For some fields, this column indicates that a result will always be returned for it.