Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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