You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failure to auto-read tx in case of a pointer to a basic type (failed to convert node to value, recovered converToValue: reflect.Value.Convert: value of type string cannot be converted to type *string)
Issue Description
I am currently auto-generating types form gqlgen and adding gogm directives on top of those. However, Optional values are emitted as pointers, which are nil in case the field is empty. As such, if a node has a field of type *string, this fails to deserialise, however succeeds if the field is declared as string.
Steps to Reproduce
Insert and lookup a node like the one below
type Test struct {
gogm.BaseUUIDNode
Name *string `json:"name,omitempty" gogm:"name=name"`
Type string `json:"type" gogm:"name=type"`
}
Environment
Value
Go Version
1.19.2
GoGM Version
2.3.6
Neo4J Version
4.4.0
Operating System
darwin/arm64
Would you be interested in tackling this issue
Yes
The text was updated successfully, but these errors were encountered:
Bug Report:
Failure to auto-read tx in case of a pointer to a basic type (
failed to convert node to value, recovered converToValue: reflect.Value.Convert: value of type string cannot be converted to type *string
)Issue Description
I am currently auto-generating types form gqlgen and adding gogm directives on top of those. However, Optional values are emitted as pointers, which are
nil
in case the field is empty. As such, if a node has a field of type*string
, this fails to deserialise, however succeeds if the field is declared asstring
.Steps to Reproduce
Insert and lookup a node like the one below
Environment
Would you be interested in tackling this issue
Yes
The text was updated successfully, but these errors were encountered: