MCPcopy Create free account
hub / github.com/kataras/iris / Complexity

Method Complexity

_examples/graphql/schema-first/graph/generated.go:82–153  ·  view source on GitHub ↗
(typeName, field string, childComplexity int, rawArgs map[string]interface{})

Source from the content-addressed store, hash-verified

80}
81
82func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) {
83 ec := executionContext{nil, e}
84 _ = ec
85 switch typeName + "." + field {
86
87 case "Character.cliqueType":
88 if e.complexity.Character.CliqueType == nil {
89 break
90 }
91
92 return e.complexity.Character.CliqueType(childComplexity), true
93
94 case "Character.id":
95 if e.complexity.Character.ID == nil {
96 break
97 }
98
99 return e.complexity.Character.ID(childComplexity), true
100
101 case "Character.isHero":
102 if e.complexity.Character.IsHero == nil {
103 break
104 }
105
106 return e.complexity.Character.IsHero(childComplexity), true
107
108 case "Character.name":
109 if e.complexity.Character.Name == nil {
110 break
111 }
112
113 return e.complexity.Character.Name(childComplexity), true
114
115 case "Mutation.upsertCharacter":
116 if e.complexity.Mutation.UpsertCharacter == nil {
117 break
118 }
119
120 args, err := ec.field_Mutation_upsertCharacter_args(context.TODO(), rawArgs)
121 if err != nil {
122 return 0, false
123 }
124
125 return e.complexity.Mutation.UpsertCharacter(childComplexity, args["input"].(model.CharacterInput)), true
126
127 case "Query.character":
128 if e.complexity.Query.Character == nil {
129 break
130 }
131
132 args, err := ec.field_Query_character_args(context.TODO(), rawArgs)
133 if err != nil {
134 return 0, false
135 }
136
137 return e.complexity.Query.Character(childComplexity, args["id"].(string)), true
138
139 case "Query.characters":

Callers

nothing calls this directly

Calls 8

IDMethod · 0.80
NameMethod · 0.65
UpsertCharacterMethod · 0.65
CharacterMethod · 0.65
CharactersMethod · 0.65

Tested by

no test coverage detected