You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to play with the 'basic' project and found that I can't use createDraft mutation:
but I can use createPost without 'isPublished' value because this key has a default value.
if I add a line in the index.js, it will work fine.
createDraft(parent, { title, text }, ctx, info) {
return ctx.db.mutation.createPost(
{
data: {
isPublished:false, //add it this value.
title,
text,
},
},
info,
)
},
Could anyone explain what's the problem? or is it a bug?
The text was updated successfully, but these errors were encountered:
I tried to play with the 'basic' project and found that I can't use createDraft mutation:


but I can use createPost without 'isPublished' value because this key has a default value.
if I add a line in the index.js, it will work fine.
Could anyone explain what's the problem? or is it a bug?
The text was updated successfully, but these errors were encountered: