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
Update file info mutation #7691
Update file info mutation #7691
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7691 +/- ##
=======================================
Coverage 27.16% 27.16%
=======================================
Files 1163 1163
Lines 15518 15518
Branches 2410 2410
=======================================
Hits 4216 4216
Misses 9534 9534
Partials 1768 1768
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
@@ -5,6 +5,7 @@ module.exports = { | |||
mutation: ` | |||
upload(refId: ID, ref: String, field: String, source: String, file: Upload!): UploadFile! | |||
multipleUpload(refId: ID, ref: String, field: String, source: String, files: [Upload]!): [UploadFile]! | |||
updateFileInfo(id: ID!, name: String, alternativeText: String, caption: String): UploadFile! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you create a fileInfo input type :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure!
Signed-off-by: Omar Garcia <omarcruz11@hotmail.com>
Signed-off-by: Omar Garcia <omarcruz11@hotmail.com>
Signed-off-by: Omar Garcia <omarcruz11@hotmail.com>
Signed-off-by: Omar Garcia <omarcruz11@hotmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description of what you did:
Adds a new mutation that allows to update file information (name, alternative text and caption). Fixes #7406