Created
December 2, 2019 18:32
-
-
Save jsoneaday/8e252578a6e6d434e6c7a1d800da7abf to your computer and use it in GitHub Desktop.
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
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