morley
05/11/2017, 1:50 PMmorley
05/11/2017, 1:51 PMconst storyRes = await _mutate(` {
createStory(
title: "${yourName} & ${theirName}"
email: "${email}"
location: "${location}"
canShare: ${canShare}
) {
id
}
} `);
const storyId = storyRes.createStory.id;
_mutate(`{
addToStoryOnFile(storyStoryId: "${storyId}", filesFileId: "${fileId}") {
storyStory {
id
}
filesFile {
id
}
}
}`);morley
05/11/2017, 1:51 PMnilan
05/11/2017, 1:51 PMnilan
05/11/2017, 1:52 PMfilesIds fields as an argument to createStorynilan
05/11/2017, 1:53 PMfiles, so you need to put in a list of idsnilan
05/11/2017, 1:53 PMcreateStory(title: "${yourName}" filesIds: ["some-id"]) { id }morley
05/11/2017, 1:53 PMmorley
05/11/2017, 1:54 PM