gcloud datastore indexes create index.yaml
gcloud app deploy
https://cloud.google.com/datastore/docs/tools/datastore-emulator
go run server.go
POST
mutation {
taro: createUser(name: "Taro", email: "taro@gmail.com") {
id
name
}
jiro: createUser(name: "Jiro", email: "jiro@gmail.com") {
id
name
}
}
POST
mutation {
a: createBlog(userId: "5153049148391424", title: "title1", content: "Hello World!") {
id
title
content
}
b: createBlog(userId: "5153049148391424", title: "title2", content: "good morning") {
id
title
content
}
c: createBlog(userId: "5635703144710144", title: "title3", content: "GraphQL is nice") {
id
title
content
}
}
POST
{
blogs(limit: 1, offset: 1) {
totalCount
nodes {
id
title
content
createdAt
}
}
}
POST
{
user(id: "5715161717407744") {
name
email
posts {
totalCount
nodes {
title
content
}
}
}
}