Skip to content

Using pointers with Enum types results in nils #205

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
threadwaste opened this issue Jun 3, 2017 · 1 comment
Open

Using pointers with Enum types results in nils #205

threadwaste opened this issue Jun 3, 2017 · 1 comment

Comments

@threadwaste
Copy link
Contributor

This is an extension of the issue highlighted by #114, and subsequently unintentionally fixed in #199. Specifically, the use of a pointer in a response type results in no resolution when e.g. serializing an Enum type.

Example, an Enum type of:

var enum = graphql.NewEnum(graphql.EnumConfig{
    Name: "MyEnum",
    Values: graphql.EnumValueConfigMap{
        "first-enum": &graphql.EnumValueConfig{Value: 1}
    }
}

...used with a response struct as follows:

type Response struct {
    MyEnum *int
}
@theRemix
Copy link

so does #220 and #206 close this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants