Skip to content

Commit

Permalink
fixed minro things
Browse files Browse the repository at this point in the history
  • Loading branch information
Harshil Goel committed Sep 7, 2023
1 parent ab496a9 commit dfdd0d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion graphql/schema/gqlschema.go
Original file line number Diff line number Diff line change
Expand Up @@ -1910,7 +1910,7 @@ func addAggregationResultType(schema *ast.Schema, defn *ast.Definition, provides
}

// Adds titleMax, titleMin fields for a field of name title.
if isOrderable(fld, defn, providesTypeMap) || isMultiLangField(fld, false) {
if isOrderable(fld, defn, providesTypeMap) {
minField := &ast.FieldDefinition{
Name: fld.Name + "Min",
Type: aggregateFieldType,
Expand Down
1 change: 0 additions & 1 deletion graphql/schema/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,6 @@ func dgraphDirectiveValidation(sch *ast.Schema, typ *ast.Definition, field *ast.
" tag not supported", typ.Name, field.Name))
return errs
}
fmt.Println(field.Name)
if len(allTags) > 2 {
errs = append(errs, gqlerror.ErrorPosf(dir.Position, "Type %s; Field %s: multiple language"+
" tag not supported", typ.Name, field.Name))
Expand Down

0 comments on commit dfdd0d3

Please sign in to comment.