Skip to content

Instantly share code, notes, and snippets.

@jsoneaday
Created December 2, 2019 18:32
Show Gist options
  • Save jsoneaday/8e252578a6e6d434e6c7a1d800da7abf to your computer and use it in GitHub Desktop.
Save jsoneaday/8e252578a6e6d434e6c7a1d800da7abf to your computer and use it in GitHub Desktop.
const { data, errors } = await execPostThread({
variables: {
threadId: localThread !== null ? localThread.id : "0",
userId: userProfile ? userProfile!.id : "0",
title,
body,
videoUrl,
bounty,
categoryId: selectedCategory!.id
}
});
if(errors && errors.length) {
// do something about error
} else {
// success
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment