File tree Expand file tree Collapse file tree
src/main/java/graphql/execution Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88/**
99 * This class is used to track the number of result nodes that have been created during execution.
1010 * After each execution the GraphQLContext contains a ResultNodeInfo object under the key {@link ResultNodesInfo#RESULT_NODES_INFO}
11- * <p/ >
11+ * <p>
1212 * The number of result can be limited (and should be for security reasons) by setting the maximum number of result nodes
1313 * in the GraphQLContext under the key {@link ResultNodesInfo#MAX_RESULT_NODES}
14+ * </p>
1415 */
1516@ PublicApi
1617public class ResultNodesInfo {
@@ -37,7 +38,7 @@ public void maxResultNodesExceeded() {
3738 * a each node that exceeds the number of max nodes is set to null,
3839 * but still is a result node (which value null)
3940 *
40- * @return
41+ * @return number of result nodes created
4142 */
4243 public int getResultNodesCount () {
4344 return resultNodesCount .get ();
@@ -46,7 +47,7 @@ public int getResultNodesCount() {
4647 /**
4748 * If the number of result nodes has exceeded the maximum allowed numbers.
4849 *
49- * @return
50+ * @return true if the number of result nodes has exceeded the maximum allowed numbers
5051 */
5152 public boolean isMaxResultNodesExceeded () {
5253 return maxResultNodesExceeded ;
You can’t perform that action at this time.
0 commit comments