Allow uploading pictures into description by drag&drop them

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-05-29 17:47:52 +02:00
parent d3176e2a8d
commit 2a2e4690ff
3 changed files with 98 additions and 5 deletions

View File

@@ -1,10 +1,10 @@
import gql from 'graphql-tag';
export const UPLOAD_PICTURE = gql`
mutation {
uploadPicture(file: "file") {
mutation UploadPicture($file: Upload!, $alt: String, $name: String!){
uploadPicture(file: $file, alt: $alt, name: $name) {
url,
url_thumbnail
id
}
}
`;