Skip to content

Commit 26419d4

Browse files
authored
Merge pull request #5528 from duffuniverse/fix-source-code-link-in-queries-complexity-and-depth-guide
Fix link to the complexity algo code in the Queries Complexity and Depth guide
2 parents f499ea5 + b09b030 commit 26419d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

guides/queries/complexity_and_depth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ However, we cannot naively tally these itemized scores without over-costing the
244244
- The `node` scope makes many _possible_ selections on an abstract type, so we need the maximum among concrete possibilities for a fair representation.
245245
- A `node.metafield` selection path is duplicated across the `HasMetafields` and `Product` selection scopes. This path will only resolve once, so should also only cost once.
246246

247-
To reconcile these possibilities, the [complexity algorithm](https://github.com/rmosolgo/graphql-ruby/blob/master/lib/graphql/analysis/ast/query_complexity.rb) breaks the selection down into a tree of types mapped to possible selections, across which lexical selections can be coalesced and deduplicated (pseudocode):
247+
To reconcile these possibilities, the [complexity algorithm](https://github.com/rmosolgo/graphql-ruby/blob/master/lib/graphql/analysis/query_complexity.rb) breaks the selection down into a tree of types mapped to possible selections, across which lexical selections can be coalesced and deduplicated (pseudocode):
248248

249249
```ruby
250250
{

0 commit comments

Comments
 (0)