Limit rest api relations depth to 1 (#14453)

Until we tackle [Implement relations depth 2 for rest
api](https://github.com/twentyhq/twenty/issues/14452), let's remove the
depth 2 query parameter which is not working (times out all the time).
This commit is contained in:
Marie
2025-09-12 17:57:16 +02:00
committed by GitHub
parent 12a5ee6bc4
commit 89254ea9e9
11 changed files with 18 additions and 109 deletions
@@ -63,7 +63,7 @@ describe('computeParameters', () => {
required: false,
schema: {
type: 'integer',
enum: [0, 1, 2],
enum: [0, 1],
default: 1,
},
});
@@ -53,7 +53,7 @@ export const computeDepthParameters = (): OpenAPIV3_1.ParameterObject => {
required: false,
schema: {
type: 'integer',
enum: [0, 1, 2],
enum: [0, 1],
default: 1,
},
};