graphql: Handle nested fragments in cost calculation
Created by: ryanslade
Also, validate queries before attempting to calculate their cost.
Closes: https://github.com/sourcegraph/sourcegraph/issues/18597
Created by: ryanslade
Also, validate queries before attempting to calculate their cost.
Closes: https://github.com/sourcegraph/sourcegraph/issues/18597