koa2 + graphQL
npm install
npm run dev
http://localhost:5555/Ihello
query {
hello {
_id,
email,
lastIP,
}
}
mutation {
add(info: {email: "a", lastIP: "aa"}) {
_id,
email,
lastIP
}
}
mutation {
update(options: { _id: "59f005556ab4a647058b4781", email: "bb", lastIP: "bbbbb" }) {
_id
email
lastIP
}
}
mutation {
remove(ids: ["59f00231068f5245491aa7c8"]) {
_id,
email,
lastIP
}
}