This commit is contained in:
2023-10-13 21:06:23 +03:00
parent 129e3af471
commit 9e37a7f730
34 changed files with 845 additions and 780 deletions
+7 -5
View File
@@ -158,7 +158,7 @@ class RecordController extends Controller
public function newInline(Request $request)
{
$schema = $this->channelService->getSchema($request->input("schema"));
$schema = $this->channelService->getSchema($request->input("schema"))->get();
$record = $this->recordService->createEmpty($schema);
$queryRecord = QueryRecord::fromRecord($record);
@@ -221,12 +221,14 @@ class RecordController extends Controller
->limit(1)
->childrenDepth(2)
->parentsDepth(1)
->tree();
->run();
$record = $graph->records->first();
return ok(
[
"graph" => $graph->toArray(),
"record" => $graph->first()->toArray(),
"graph" => toArray($graph),
"record" => toArray($record)
]
);
}
@@ -287,7 +289,7 @@ class RecordController extends Controller
$newGraph = $this->query
->filter(["id" => $recordId])
->limit(10)
->childrenDepth(2)
->childrenDepth(1)
->parentsDepth(1)
->run();