Task: Fixed websocket for subscriptions in DGS framework and add netflix dgs subscription websocket autoconfigure

This commit is contained in:
Sambo Chea 2021-08-08 11:00:39 +07:00
parent 8660f35410
commit 53d35264e4

View File

@ -42,7 +42,7 @@ const HELLO = gql`
function App() {
// const {error, loading, data} = useQuery<AccountResult>(ACCOUNTS)
const {error, loading, data} = useSubscription(HELLO)
console.log(data)
return (
<>
<h1>Accounts</h1>
@ -56,7 +56,7 @@ function App() {
// </>
// )
// )
<p>data</p>
<p>{`${data.hello}`}</p>
}
</>
);