Skip to content

fix unions with custom scalar values - #681

Merged
tyranron merged 3 commits into
graphql-rust:masterfrom
ccbrown:fix-unions-with-custom-scalars
Jun 14, 2020
Merged

tyranron merged 3 commits into
graphql-rust:masterfrom
ccbrown:fix-unions-with-custom-scalars

Conversation

@ccbrown

@ccbrown ccbrown commented Jun 14, 2020 •

Copy link
Copy Markdown
Contributor

The changes introduced in #666 don't quite work for unions where custom scalar values are used.

Explicitly specifying a scalar value type only worked when that type was DefaultScalarValue. This fixes that and adds a test.

@tyranron tyranron added the enhancement Improvement of existing features or bugfix label Jun 14, 2020

@tyranron tyranron left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@ccbrown thank you! ❤️

I've polished your contribution a bit to strip away the stuff appeared to be redundant now.

@tyranron

Copy link
Copy Markdown
Member

@LegNeato the GitHub Actions ICEs of rustc are weird... can't really understand why they happen.

As for nightly builds on Azure Pipelines, it seems that something is wrong with the latest nightly version. Locally, all the the code builds OK and tests pass.

I'm going to merge this anyway, and retry the stuff in master on the next nightly update. Seems to be irrelevant to this PR anyway...

@tyranron
tyranron merged commit 6dd6abb into graphql-rust:master Jun 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improvement of existing features or bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants