Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Make some ngql methods public #3250

Merged
merged 1 commit into from
Mar 3, 2017
Merged

Make some ngql methods public #3250

merged 1 commit into from
Mar 3, 2017

Conversation

kalman
Copy link
Contributor

@kalman kalman commented Mar 3, 2017

No description provided.

@kalman kalman requested a review from arv March 3, 2017 23:22

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
Copy link
Contributor Author

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe{Wrap,Box}Scalar ?

Copy link
Contributor

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

Copy link
Contributor

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...

@kalman
Copy link
Contributor Author

kalman commented Mar 3, 2017

CC @rafael-atticlabs

Copy link
Contributor

@arv arv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@codecov-io
Copy link

Codecov Report

Merging #3250 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted Files Coverage Δ
go/ngql/query.go 100% <100%> (ø)
go/ngql/types.go 93.51% <100%> (ø)
go/datas/http_batch_store.go 88.05% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update af87b68...a662795. Read the comment docs.

@kalman kalman merged commit 5e7bf33 into attic-labs:master Mar 3, 2017
@kalman kalman deleted the ngql-pub branch March 3, 2017 23:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants