Feature

Commands

graphql-server

npm init
npm install apollo-server graphql PubSub --save
node index.js

apollo-client

vue create apollo-client // Vue 2
cd apollo-client
vue add apollo // All No
npm install --save-dev @babel/plugin-transform-runtime
npm run serve

Query

query {
  posts {
    id
    title
    author
  }
}
mutation {
  deletePost (
    id: 2
  ) {
    id
    title
    author
  }
}
mutation {
  createPost (
    data: {
      title: "GraphQL",
      author: "Google",
    }
  ) {
    id
    title
    author
  }
}