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

Use structs with non-default constructors as input types w/o configuring #5844

Merged
merged 8 commits into from
May 1, 2023

Conversation

atykhyy
Copy link
Contributor

@atykhyy atykhyy commented Feb 15, 2023

Product: HotChocolate

Currently structs with all writable properties and non-default constructors cannot be used as input types without explicit configuration (schema build fails with No compatible constructor found for input type type 'T'). However structs always have an implicit default constructor, which is used by Expression.New(type).

@michaelstaib
Copy link
Member

Thanks for providing this fix.

But it also needs a test in order to progress further.

@michaelstaib michaelstaib added this to the HC-13.0.5 milestone Feb 27, 2023
@atykhyy
Copy link
Contributor Author

atykhyy commented Mar 2, 2023

This PR was marked 13.0.5 but it's not in 13.0.5 😢

@michaelstaib michaelstaib modified the milestones: HC-13.0.5, HC-13.0.x Mar 13, 2023
@michaelstaib michaelstaib modified the milestones: HC-13.0.x, HC-13.1.0 May 1, 2023
@michaelstaib
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@michaelstaib michaelstaib merged commit ce20cb7 into ChilliCream:main May 1, 2023
martindisch pushed a commit to martindisch/graphql-platform that referenced this pull request May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants