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
# first, we'll receive an empty feedqueryemptyFeed {
feed {
id
}
}
# let's signup! we'll store the received token in the a new 'Authorization: Bearer <token>' headermutationsignup {
signup(
email: "nilan@graph.cool"password: "default"name: "Nilan"
) {
tokenuser {
idposts {
id
}
}
}
}
# let's create our first post! make sure to set the Authorization header correctlymutationcreatePost {
writePost(
title: "Why GraphQL will change your life!"text: "Rest in pieces"
) {
id
}
}
db
# we'll see the new post, but it's not published yetquerygetPosts {
allPosts {
idisPublished
}
}
The text was updated successfully, but these errors were encountered:
server
db
The text was updated successfully, but these errors were encountered: