in _examples/dataloader/generated.go [109:231]
func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) {
ec := executionContext{nil, e, 0, 0, nil}
_ = ec
switch typeName + "." + field {
case "Address.country":
if e.complexity.Address.Country == nil {
break
}
return e.complexity.Address.Country(childComplexity), true
case "Address.id":
if e.complexity.Address.ID == nil {
break
}
return e.complexity.Address.ID(childComplexity), true
case "Address.street":
if e.complexity.Address.Street == nil {
break
}
return e.complexity.Address.Street(childComplexity), true
case "Customer.address":
if e.complexity.Customer.Address == nil {
break
}
return e.complexity.Customer.Address(childComplexity), true
case "Customer.id":
if e.complexity.Customer.ID == nil {
break
}
return e.complexity.Customer.ID(childComplexity), true
case "Customer.name":
if e.complexity.Customer.Name == nil {
break
}
return e.complexity.Customer.Name(childComplexity), true
case "Customer.orders":
if e.complexity.Customer.Orders == nil {
break
}
return e.complexity.Customer.Orders(childComplexity), true
case "Item.name":
if e.complexity.Item.Name == nil {
break
}
return e.complexity.Item.Name(childComplexity), true
case "Order.amount":
if e.complexity.Order.Amount == nil {
break
}
return e.complexity.Order.Amount(childComplexity), true
case "Order.date":
if e.complexity.Order.Date == nil {
break
}
return e.complexity.Order.Date(childComplexity), true
case "Order.id":
if e.complexity.Order.ID == nil {
break
}
return e.complexity.Order.ID(childComplexity), true
case "Order.items":
if e.complexity.Order.Items == nil {
break
}
return e.complexity.Order.Items(childComplexity), true
case "Query.customers":
if e.complexity.Query.Customers == nil {
break
}
return e.complexity.Query.Customers(childComplexity), true
case "Query.torture1d":
if e.complexity.Query.Torture1d == nil {
break
}
args, err := ec.field_Query_torture1d_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.Torture1d(childComplexity, args["customerIds"].([]int)), true
case "Query.torture2d":
if e.complexity.Query.Torture2d == nil {
break
}
args, err := ec.field_Query_torture2d_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.Torture2d(childComplexity, args["customerIds"].([][]int)), true
}
return 0, false
}