public function compileNested(Fluent $fluent)
{
$blueprint = new Blueprint($fluent->type);
/* @var \Closure $callback */
$callback = $fluent->callback;
if (is_callable($callback)) {
$callback($blueprint);
}
return ['type' => 'nested', 'properties' => $this->compileFields($blueprint->getFields())];
}