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

Retain numeric parameter value type when creating open cypher query #63

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

andreachild
Copy link
Contributor

@andreachild andreachild commented Jan 29, 2025

Issue #: #64
Description of changes:

Numeric graphQL query parameter values were inadvertently being set as strings upon conversion to the equivalent open cypher query. Fixed transformFunctionInputParameters which converts the graphQL request fields into a parameters object by converting the field value to a Number if the type is IntValue or FloatValue.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@andreachild andreachild marked this pull request as ready for review January 30, 2025 17:51
@andreachild andreachild changed the title Draft: Parameter type conversion fixes Retain numeric parameter value type when creating open cypher query Jan 30, 2025
Copy link
Contributor

@kmcginnes kmcginnes left a comment

Choose a reason for hiding this comment

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

Looks good. Just a couple of questions

Copy link
Contributor

@kmcginnes kmcginnes left a comment

Choose a reason for hiding this comment

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

Approving this smaller fix while we further investigate @danielfinke's more encompassing changes.

Copy link
Contributor

@Cole-Greer Cole-Greer left a comment

Choose a reason for hiding this comment

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

Thanks @andreachild, LGTM.

…s strings upon conversion to the equivalent open cypher query. Fixed transformFunctionInputParameters which converts the graphQL request fields into a parameters object by converting the field value to a Number if the type is IntValue or FloatValue.
@Cole-Greer Cole-Greer merged commit 92f3514 into aws:main Feb 5, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

4 participants