wip create/edit

This commit is contained in:
2024-10-02 18:58:30 +03:00
parent 4389dba49d
commit b8c5f82e47
13 changed files with 183 additions and 12 deletions
@@ -1,7 +1,9 @@
@php
$references = $graph->edges
->filter(fn($edge) => $edge->field === $field->name && $edge->source === $record->id)
->map(fn($edge) => $graph->records->firstWhere("id", $edge->target));
// $references = $graph->edges
// ->filter(fn($edge) => $edge->field === $field->name && $edge->source === $record->id)
// ->map(fn($edge) => $graph->records->firstWhere("id", $edge->target));
//
$references = collect([]);
$collectionSchemas = $schemas->whereIn("name",$field->collections);
@endphp