Skip to content

Instantly share code, notes, and snippets.

@guidorice
Created February 5, 2023 11:03
Show Gist options
  • Save guidorice/ab7f7236918e6d6f2c04d9023ed6a3dc to your computer and use it in GitHub Desktop.
Save guidorice/ab7f7236918e6d6f2c04d9023ed6a3dc to your computer and use it in GitHub Desktop.
graphql-upload-example
# 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