Skip to content

"Runtime error: Nil pointer reference" while serializing null string pointer #365

Closed
@dreamer-89-zz

Description

Do we need to add null pointer handling in graphql/scalers.go ?

func coerceString(value interface{}) interface{} {
if v, ok := value.(*string); ok {
return *v
}
return fmt.Sprintf("%v", value)
}

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions