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" });
}