Created
February 5, 2023 11:03
-
-
Save guidorice/ab7f7236918e6d6f2c04d9023ed6a3dc to your computer and use it in GitHub Desktop.
graphql-upload-example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# curl -v http://dev.mlhub.earth:8080/gql \ | |
curl -v http://dev.mlhub.earth:3000/api/gql \ | |
-F operations='{ "query": "mutation ($file: Upload!) { upload_dataset_ingest_file( input: { dataset_id: \"guidorice_dataset1\", ingest_filetype: pdf }, blob: $file) { error size message } } ", "variables": { "file": null } }' \ | |
-F map='{ "0": ["variables.file"] }' \ | |
-F 0=@test.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment