diff --git a/database/ql.go b/database/ql.go index dc9ddaaae911b7a2e517ec9c8d7a5b969349487b..088b98af8cf179d317d0c5561dab8ca29c866fcb 100644 --- a/database/ql.go +++ b/database/ql.go @@ -36,7 +36,7 @@ if len(qlFields) == 0 { // Collect all fields if we are not in an active graphql context for _, field := range m.Fields().All() { qlFields = append(qlFields, graphql.CollectedField{ - &ast.Field{Name: field.GQL}, nil, + Field: &ast.Field{Name: field.GQL}, }) } } @@ -67,7 +67,7 @@ if len(fields) == 0 { // Collect all fields if we are not in an active graphql context for _, field := range m.Fields().All() { fields = append(fields, graphql.CollectedField{ - &ast.Field{Name: field.GQL}, nil, + Field: &ast.Field{Name: field.GQL}, }) } }