16 lines
299 B
TypeScript
16 lines
299 B
TypeScript
|
import { gql, useQuery } from '@apollo/client';
|
||
|
|
||
|
const QUERY_USER_PROFILE = gql`
|
||
|
query userProfile {
|
||
|
userProfile {
|
||
|
id,
|
||
|
name,
|
||
|
email,
|
||
|
createdAt,
|
||
|
connectedAt
|
||
|
}
|
||
|
}`;
|
||
|
|
||
|
export function useUserProfileQuery() {
|
||
|
return useQuery(QUERY_USER_PROFILE, { fetchPolicy: "network-only" });
|
||
|
}
|