请求时序图
最后更新于
最后更新于
query MyQuery($id: Int = 1) {
todo_findUniqueTodo(where: {id: $id}) {
completed
createdAt
id
title
}
}curl 'http://localhost:9991/operations/Single?id=1'query MyQuery {
findUniqueTodo(where: { id: 1 }) {
completed
createdAt
id
title
}
}SELECT `completed`,`createdAt`,`id`,`title` FROM Todo WHERE id=1{
"data": {
"findUniqueTodo": {
"completed": false,
"createdAt": "2022-12-31T16:00:01.000Z",
"id": 1,
"title": "This is Fireboom"
}
}
}{
"todo_findUniqueTodo": {
"completed": true,
"createdAt": "2022-12-31T16:00:01.000Z",
"id": 1,
"title": "Hello world"
}
}query MyQuery($id: Int = 1) {
todo_findUniqueTodo(where: { id: $id }) {
completed
createdAt
id
title
}
system_getAllRoles {
code
remark
}
} curl 'http://localhost:9123/api/v1/role/all'[
{ "code": "admin", "remark": "" },
{ "code": "user", "remark": "" }
]{
"todo_findUniqueTodo": {
"completed": true,
"createdAt": "2022-12-31T16:00:01.000Z",
"id": 1,
"title": "Hello world"
},
"system_getAllRoles": [
{
"code": "admin",
"remark": ""
},
{
"code": "user",
"remark": ""
}
]
}