URL Scheme and Segmentation - global collection

The global collection cannot be directly queried. One cannot specify the global collection in a BQL query.

It is an virtual representation of global fields (learn more about global fields here).
This section will give the URL scheme and segmentation fields that are available on nearly all collections.

URL Scheme fields

The list of URL scheme fields, their slug and type:

NameSlugType
URLurlString
ProtocolprotocolString
HosthostString
PathpathString
ExtensionextensionString
Query Stringquery_stringString
Query String Keysquery_string_keysList

Segmentation fields

If your project defines a segmentation, it will also be accessible throughout all collections.

Each segment dimension has a name, that will be adapted for the slug.
A popular segment name is pagetype, used for the example below.

NameSlugType
Pagetypesegments.pagetype.valueTree
Pagetype Depth 1segments.pagetype.depth_1String
Pagetype Depth 2segments.pagetype.depth_2String
Pagetype Depth 3segments.pagetype.depth_3String
.........

To filter on tree types, see Predicates.