John Smeeth
03/02/2019, 10:01 AM{
"errors": [
{
"message": "Post : unsupported protocol scheme \"\"",
"path": [
"createUser"
]
}
],
"data": {
"createUser": null
}
}
Harshit
03/02/2019, 10:05 AMJohn Smeeth
03/02/2019, 12:56 PMJohn Smeeth
03/02/2019, 12:56 PMtype Query {
publishedPosts: [Post!]!
post(postId: ID!): Post
postsByUser(userId: ID!): [Post!]!
}
type Mutation {
createUser(name: String!): User
createDraft(title: String!, userId: ID!): Post
publish(postId: ID!): Post
}
type User {
id: ID!
email: String
name: String!
posts: [Post!]!
}
type Post {
id: ID!
title: String!
published: Boolean!
author: User
}