Skip to content
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

InputType field name #346

Closed
Nikamura opened this issue May 28, 2019 · 1 comment
Closed

InputType field name #346

Nikamura opened this issue May 28, 2019 · 1 comment
Labels
Duplicate 🔑 This issue or pull request already exists

Comments

@Nikamura
Copy link

Describe the bug

Name provided for input field will create a new variable instead of assigning to the correct one.

To Reproduce

@InputType()
export class C {
  @Field(_type => ObjectIdScalar, { name: "buildId" })
  public buildObjectId!: ObjectId;
}
@Arg("input") input: C

input.buildObjectId will be undefined, while input.buildId will have input value.

Expected behavior

input.buildObjectId to have input value.

@MichalLytek
Copy link
Owner

MichalLytek commented May 28, 2019

Duplicate of #263 🔒

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate 🔑 This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants