GraphQL Custom Types
From Logic Wiki
const typeDefs = `
type Query {
title: String!
me: User!
...
}
type User{
id:ID!
name: String!
...
}
`
const resolvers = {
Query: {
title() {
return 'The War of Art'
},
me() {
return {
id:'1234',
name:'Ali'
}
}
}