Skip to content

Commit 8c8fc70

Browse files
docs: Update Apollo Server constructor docs for maxRecursiveSelections (#8131)
This PR updates the docs for Apollo Server's constructor to explain the `maxRecursiveSelections` argument, which was added in [@apollo/[email protected]](https://github.com/apollographql/apollo-server/releases/tag/%40apollo%2Fserver%404.12.0). Fixes #8118 . <!-- FED-731 -->
1 parent 84e9f76 commit 8c8fc70

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/source/api/apollo-server.mdx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,26 @@ The default value is `true`, **unless** the `NODE_ENV` environment variable is s
151151
<tr>
152152
<td>
153153

154+
###### `maxRecursiveSelections`
155+
156+
`boolean` or `number`
157+
158+
</td>
159+
160+
<td>
161+
162+
If `true`, enables a validation rule that computes how many selections would be in the operation if its named fragment definitions were recursively inlined (without actually inlining) and errors if the count exceeds 10,000,000. If `number`, it instead errors if the count exceeds this number.
163+
164+
This rule is executed before any provided `validationRules`, and can be useful to avoid performance issues with those rules or any downstream plugins.
165+
166+
The default value is `false`.
167+
168+
</td>
169+
</tr>
170+
171+
<tr>
172+
<td>
173+
154174
###### `hideSchemaDetailsFromClientErrors`
155175

156176
`boolean`

0 commit comments

Comments
 (0)