Documentation
¶
Overview ¶
Package complexity provides functionality to analyze the complexity of GraphQL operations
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComplexityAnalysis ¶
type ComplexityAnalysis struct {
Path string
OperationName string
Complexity int
FlattenedComplexity int
}
ComplexityAnalysis holds the complexity analysis result for a single operation
func RunAnalysis ¶
func RunAnalysis(ctx context.Context, schema, docs string) ([]ComplexityAnalysis, error)
Click to show internal directories.
Click to hide internal directories.