Skip to content

Instantly share code, notes, and snippets.

View mazdak78's full-sized avatar

Mazdak Mansouri mazdak78

View GitHub Profile
mazdak78 / graphql_nullable_int64_field.go
Last active November 21, 2019 22:21
graphql-golang nullable int field
//the idea is taken from
// but that code throw exception and does not compile
// I just refined that and fix the problem and convert it to Int version
// same can be done for other nullable types
// LeadItem struct
type LeadItem struct {
CustomerId sql.NullInt64