Skip to content

Commit

Permalink
Make docID field nillable
Browse files Browse the repository at this point in the history
  • Loading branch information
islamaliev committed Jun 4, 2024
1 parent fe8a7d4 commit 4feb977
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/normal_value_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1404,7 +1404,7 @@ func TestNormalValue_NewNormalNil(t *testing.T) {
assert.True(t, v.IsNil())
} else {
_, err := NewNormalNil(kind)
require.Error(t, err)
require.Error(t, err, "field kind: " + kind.String())

Check failure on line 1407 in client/normal_value_test.go

View workflow job for this annotation

GitHub Actions / Lint GoLang job

File is not `gofmt`-ed with `-s` (gofmt)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion client/schema_field_description.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (k ScalarKind) Underlying() string {
}

func (k ScalarKind) IsNillable() bool {
return k != FieldKind_DocID
return true
}

func (k ScalarKind) IsObject() bool {
Expand Down

0 comments on commit 4feb977

Please sign in to comment.