graphile / graphile/graphile.github.io

PostGraphiQL supports 'Subscriptions'?

Aperta
#139 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
SCSS
Stelle
27
Fork
126
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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](https://user-images.githubusercontent.com/3856578/59964733-8d9c2200-94fc-11e9-8d86-943bd57be0bb.png)

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!

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

L’issue non indica alcun file, test o punto di ingresso. Riproduci la subscription in PostGraphiQL e traccia il flusso da PostGraphile a Node/Express e al browser descritto nel report. Il lavoro è completato quando sono documentati il comportamento supportato della subscription e i passaggi per consumarla, incluso se le modifiche al database compaiono nella risposta.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
express, graphql, node.js
Ambito
api, documentation
Tipo di issue
Documentazione
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.