resolveSkinFields.php
Table of Contents
Functions
- resolveSkinFields() : mixed
- Resolves which projection an edge or join definition should use for the active request skin.
Functions
resolveSkinFields()
Resolves which projection an edge or join definition should use for the active request skin.
resolveSkinFields(array<string|int, mixed> $definition, string|null $skin) : mixed
Resolution order :
AQL::SKIN_FIELDS[$skin]— explicit projection for this skinAQL::SKIN_FIELDS['*']— fallback bucket inside SKIN_FIELDSArango::FIELDS— legacy single projection (backwards-compatible)null— no projection declared at all
If AQL::SKIN_FIELDS is absent or not an array, the function ignores it
and falls back directly on Arango::FIELDS — definitions that pre-date
the SKIN_FIELDS feature keep their behaviour unchanged.
Parameters
- $definition : array<string|int, mixed>
-
The edge or join definition.
- $skin : string|null
-
The request-level skin (e.g. 'default', 'full').
Tags
Return values
mixed —The resolved projection (typically an array<string, mixed>) or null.