Skip to content

Instantly share code, notes, and snippets.

@cdimartino
Last active May 27, 2020 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdimartino/7ca3d166f195f1221c02732812f8a27f to your computer and use it in GitHub Desktop.
Save cdimartino/7ca3d166f195f1221c02732812f8a27f to your computer and use it in GitHub Desktop.
## Fetch Panels (with presigned url for read)
query {
currentUser{
panels {
nodes {
id
title
type
brandingAsset {
id
presignedUrl
}
}
}
}
}
## Create presigned upload url
mutation {
createSignedUploadUrl {
s3Location
signedUrl
}
}
## Attach uploaded location as Branding image (copies to new location)
mutation AttachBranding($id: ID!, $s3Location: String!, $type: CloudArtifactTypeEnum!) {
myPanelAttachBranding(input: {id: $id, s3Location: $s3Location, type: $type}) {
panel {
brandingAsset {
presignedUrl
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment