extractFromIDs.php
Table of Contents
Functions
- extractFromIDs() : array<string|int, mixed>
- Extract unique "_from" vertex IDs from a list of edge documents.
Functions
extractFromIDs()
Extract unique "_from" vertex IDs from a list of edge documents.
extractFromIDs(array<string|int, mixed> $edges) : array<string|int, mixed>
This helper function is a shortcut for extractVertexIds() with $side fixed to Schema::_FROM.
It returns a unique list of vertex IDs from the "_from" field in an array of edge documents
(objects or associative arrays).
Parameters
- $edges : array<string|int, mixed>
-
Array of edge objects or associative arrays containing
_fromand_to.
Tags
Return values
array<string|int, mixed> —Unique list of "_from" vertex IDs.