-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use depth=0 in REST API #6101
Comments
To fix the issue with
Example: @Get('your-endpoint')
async getYourData(@Query('depth') depth: number) {
const effectiveDepth = depth === 0 ? 0 : (depth || 1);
return this.yourService.getData(effectiveDepth);
}
Example: async getData(depth: number) {
if (depth === 0) {
// Handle depth=0 logic
} else {
// Handle other depths
}
} Files to check:
Ensure that all relevant parts of the codebase respect the References/packages/twenty-server/src/modules/calendar-messaging-participant/jobs
|
A customer reported that it wasn't possible to use depth=0 as a parameter in the REST API (it returns depth=1).
It would be nice to fix it.
The text was updated successfully, but these errors were encountered: