PostGraphiQL supports 'Subscriptions'?

未關閉
#139 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
30/100
Issue 類型
文件
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
express, graphql, node.js
領域
api, documentation

研究方向

該 issue 未指定檔案、測試或進入點。在 PostGraphiQL 中重現 subscription,並追蹤報告中描述的從 PostGraphile 到 Node/Express 再到瀏覽器的流程。完成的標準是記錄受支援的 subscription 行為與消費步驟,包括資料庫變更是否會出現在回應中。

由索引模型根據 Issue 內容生成。

描述

Hi,
Not sure if I'm doing something wrong, but I'm testing Postgraphile with subscriptions and visualise through PostGraphiQL.
My query

subscription {
  somethings {
    edges {
      node {
        id
        string
      }}}}

executes correctly and I see correct data response. But when I create/update/delete a row, the changes do not get reflected in the PostGraphiQL response window.
The page says that the websocket connection is on:
image

Apologies, but I'm having hard time finding information on how to actually consume this subscription through postgraphile -> node(express) -> frontend (ie Axios, fetch etc). What chain of events (stack) would you use to deliver updated field value in database to user's browser html page?

Thanks in advance!

主要語言
SCSS
星號
27
分支
124
PR 合併指標
30 天內沒有已合併 PR

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 有 Pull Request 範本
  • 沒有貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

graphile/graphile.github.io 的其他 Issue

查看 graphile/graphile.github.io 的全部 Issue

相似的 Issue

更多 Backend & API Design Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。