@@ 36,7 36,7 @@ func Scan(ctx context.Context, m Model) []interface{} {
// 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 @@ func Columns(ctx context.Context, m Model) []string {
// 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},
})
}
}