Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
1e16miin committed Jul 22, 2024
1 parent 32549db commit d7ac2ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/walmartlabs/lacinia/complexity_analysis.clj
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
(defn complexity-analysis
[query {:keys [max-complexity] :as _options}]
(let [{:keys [fragments selections]} query
pq (summarize-selections selections fragments)
complexity (calculate-complexity (first pq))]
summarized-selections (summarize-selections selections fragments)
complexity (calculate-complexity (first summarized-selections))]
(when (> complexity max-complexity)
{:message (format "Over max complexity! Current number of resources to be queried: %s" complexity)})))

0 comments on commit d7ac2ae

Please sign in to comment.