我有一个模式类型 Page,它有一个块数组:
{
title: 'Page',
name: 'page',
type: 'document',
fields: [
...
{
title: 'Blocks',
name: 'blocks',
type: 'array',
of: [
{type: 'tileGrid'},
{type: 'otherType'}
],
options: {
editModal: 'fullscreen'
}
}
]
}
Run Code Online (Sandbox Code Playgroud)
该类型tileGrid具有以下字段:
{
title: 'Tiles',
name: 'tiles',
type: 'array',
of: [{
type: 'reference',
to: [
{type: 'tile'}
]
}]
}
Run Code Online (Sandbox Code Playgroud)
所以tile类型是深度嵌套的page.blocks[].tiles[].tile。如何在同一个查询中查询page和填写tile参考文献?
| 归档时间: |
|
| 查看次数: |
875 次 |
| 最近记录: |