实时查询
query MyQuery {
todo_findFirstTodo {
completed
createdAt
id
title
}
}// 每隔1秒请求1次接口
setInterval(()=>{
fetch("http://localhost:9991/operations/SSE", {
"method": "GET",
"mode": "cors",
});
},1000)服务端轮询

SSE
实时查询

客户端使用
最后更新于