Task: Completed login and get token from user and able to change user password by username and updated the security filters and add auth service and auth details. And more add login mutation in resolver
This commit is contained in:
@@ -40,23 +40,23 @@ const HELLO = gql`
|
||||
`
|
||||
|
||||
function App() {
|
||||
// const {error, loading, data} = useQuery<AccountResult>(ACCOUNTS)
|
||||
const {error, loading, data} = useSubscription(HELLO)
|
||||
const {error, loading, data} = useQuery<AccountResult>(ACCOUNTS)
|
||||
// const {error, loading, data} = useSubscription(HELLO)
|
||||
console.log(data)
|
||||
return (
|
||||
<>
|
||||
<h1>Accounts</h1>
|
||||
{
|
||||
loading || !data ? <p>Loading...</p> :
|
||||
// data.fetchAccounts.map(account => (
|
||||
// <>
|
||||
// <div>Account ID: {account.id}</div>
|
||||
// <div>Account Code: {account.code}</div>
|
||||
// <div>Account User: {account.user.name}</div>
|
||||
// </>
|
||||
// )
|
||||
// )
|
||||
<p>{`${data.hello}`}</p>
|
||||
data.fetchAccounts.map(account => (
|
||||
<>
|
||||
<div>Account ID: {account.id}</div>
|
||||
<div>Account Code: {account.code}</div>
|
||||
<div>Account User: {account.user.name}</div>
|
||||
</>
|
||||
)
|
||||
)
|
||||
// <p>{`${data.hello}`}</p>
|
||||
}
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user