【发布时间】:2018-06-25 01:44:16
【问题描述】:
我有一个架构类型页面,它有一个块数组:
{
title: 'Page',
name: 'page',
type: 'document',
fields: [
...
{
title: 'Blocks',
name: 'blocks',
type: 'array',
of: [
{type: 'tileGrid'},
{type: 'otherType'}
],
options: {
editModal: 'fullscreen'
}
}
]
}
tileGrid 类型有以下字段:
{
title: 'Tiles',
name: 'tiles',
type: 'array',
of: [{
type: 'reference',
to: [
{type: 'tile'}
]
}]
}
所以tile 类型深深嵌套在page.blocks[].tiles[].tile 中。
如何查询page并在同一查询中填写tile引用?
【问题讨论】: