Task: Fixed websocket for subscriptions in DGS framework and add netflix dgs subscription websocket autoconfigure
This commit is contained in:
parent
8660f35410
commit
53d35264e4
@ -42,7 +42,7 @@ const HELLO = gql`
|
|||||||
function App() {
|
function App() {
|
||||||
// const {error, loading, data} = useQuery<AccountResult>(ACCOUNTS)
|
// const {error, loading, data} = useQuery<AccountResult>(ACCOUNTS)
|
||||||
const {error, loading, data} = useSubscription(HELLO)
|
const {error, loading, data} = useSubscription(HELLO)
|
||||||
|
console.log(data)
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<h1>Accounts</h1>
|
<h1>Accounts</h1>
|
||||||
@ -56,7 +56,7 @@ function App() {
|
|||||||
// </>
|
// </>
|
||||||
// )
|
// )
|
||||||
// )
|
// )
|
||||||
<p>data</p>
|
<p>{`${data.hello}`}</p>
|
||||||
}
|
}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user