添加嵌套项很容易:配置只是一个RANGE_ADD
query {
viewer {
item {
edges {
node {
subitem {
edges {
node {
id,
title
}
}
}
}
}
}
}
}
添加 asubitem只需要 aRANGE_ADD的 parentId 等于 的 id item。
但是,如何添加item没有父母的?我尝试使用RANGE_ADD没有 parentId 的配置,但它没有用。
我觉得这是一件如此简单的事情,但我似乎无法在文档中找到它。