-
Notifications
You must be signed in to change notification settings - Fork 266
Conversation
|
||
return graphql.NewObject(graphql.ObjectConfig{ | ||
Name: rootQueryKey, | ||
Fields: graphql.Fields{ | ||
rootKey: &graphql.Field{ | ||
Type: rootType, | ||
Resolve: func(p graphql.ResolveParams) (interface{}, error) { | ||
return maybeGetScalar(rootValue), nil | ||
return MaybeGetScalar(rootValue), nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not super happy about exposing MaybeGetScalar
, but I need to. If you can suggest a better name then great
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe{Wrap,Box}Scalar ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry... that is not what it does
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't think of a better name...
CC @rafael-atticlabs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Codecov Report
Continue to review full report at Codecov.
|
No description provided.