Open
Description
Describe the Bug.
i have a collection relation with 10 other collections having depth of 1 sending me data of all 10 related collections. you need to implement depth control over query , so i can get depth data conditionally
i hope you understand my problem.
Reproduction Steps
exp
collection with depth of 0
{
id: 1,
name: "asasd",
user: 1,
company: 1,
vendor: 1
}
collection with depth of 1
{
id: 1,
name: "asasd",
user: {
id: 1,
name: "asasd",
},
company: {
id: 1,
name: "asasd",
},
vendor: {
id: 1,
name: "asasd",
}
}
i want only
{
id: 1,
name: "asasd",
user: {
id: 1,
name: "asasd",
},
company: 1,
vendor: 1
}
Environment Info
Payload
Nextjs