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

Remove JSON response types for createFiles & uploadFiles fields #594

Merged
merged 6 commits into from
Nov 4, 2019
Merged

Remove JSON response types for createFiles & uploadFiles fields #594

merged 6 commits into from
Nov 4, 2019

Conversation

adrians5j
Copy link
Member

Related Issue

uploadFiles and createFiles had JSON type for the data response field. JSON is an anti-pattern in the GQL world, and also it would cause the createFiles field to break when a data field would be listed as a part of the GQL response.

Your solution

Replace JSON with adequate fully-specified GQL types.

How Has This Been Tested?

Manual testing - I tested the install process completely, just to make sure nothing breaks there as it is a critical piece of Webiny.

Screenshots (if relevant):

N/A

@adrians5j adrians5j added the bug label Nov 4, 2019
@adrians5j adrians5j self-assigned this Nov 4, 2019
@adrians5j
Copy link
Member Author

Added comment for the data field @Pavel910.

Copy link
Collaborator

@Pavel910 Pavel910 left a comment

Choose a reason for hiding this comment

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

LG2M :) 🚀

@adrians5j adrians5j merged commit 538fa85 into webiny:master Nov 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants