Skip to content
This repository was archived by the owner on Nov 23, 2022. It is now read-only.

Commit 0271aa5

Browse files
committed
fix(relay): add query depth limit (CWE-400)
1 parent d179642 commit 0271aa5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/relay/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export const listen = async ({
3131
namespace: req.headers['x-dstack-namespace'] as string | undefined
3232
}
3333
},
34+
queryDepth: 15,
3435
path: '/graphql'
3536
})
3637

0 commit comments

Comments
 (0)