Skip to content

PREAPPS-1325 Minor improvements which are not related to the ticket #119

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

Merged
merged 1 commit into from
Dec 27, 2018

Conversation

silentsakky
Copy link
Member

No description provided.

@@ -1356,7 +1356,7 @@ type MimePart {
contentId: String
contentType: String
contentDisposition: String
size: Int # Size in bytes
size: Float # Size in bytes
Copy link

Choose a reason for hiding this comment

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

I am presuming we are going to Float as we dont have a LongInt in GQL. This might lead to some hard to find errors (failing equality, etc). More at http://www.volkerschatz.com/science/float.html.

I think we may eventually need to do a CustomScalar as suggested in graphql/graphql-spec#73. But that is a lot of work :(. Or look for a library that does it.

Copy link
Member Author

Choose a reason for hiding this comment

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

yes if we have a size value which exceeds integer boundary

this change was added to put consistency as in some places we are using Float and some places it was Int, so graphql was giving conflict

@silentsakky silentsakky merged commit cf3e38f into develop Dec 27, 2018
@silentsakky silentsakky deleted the PREAPPS-1325-2 branch December 27, 2018 10:13
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.

3 participants