PostGraphiQL supports 'Subscriptions'?

オープン
#139 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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 ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

graphile/graphile.github.io のほかの issue

graphile/graphile.github.io の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。