You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say there's a user called A who created himself somehow.
I am requesting: http://localhost:4000/users?populate=by and I am getting the response as follows:
{ # 200 OK
data: [
{
name: A,
by: {
name: A,
by: 62e7960ebc9aa651523bf5b2 // Object Id
}
}
]
}
I am OK with this response, however, the problem comes when someone requests http://localhost:4000/users?populate=by.by.by.by
the response becomes:
{
# 200 OK
data: [{
name: A,
by: {
name: A,
by: {
name: A,
by: {
name: A,
by: 62e7960ebc9aa651523bf5b2 // Object ID
}
}
}
}]
}
Is there an option where I can only allow one level of populating in aqp (api-query-params)?
The text was updated successfully, but these errors were encountered:
I have the following Model:
and I am using api-query-params in one of my controllers:
Let's say there's a user called A who created himself somehow.
I am requesting:
http://localhost:4000/users?populate=by
and I am getting the response as follows:I am OK with this response, however, the problem comes when someone requests
http://localhost:4000/users?populate=by.by.by.by
the response becomes:
Is there an option where I can only allow one level of populating in aqp (api-query-params)?
The text was updated successfully, but these errors were encountered: