* feat: rename commentThread into activity server * feat: rename commentThread into activity front * feat: migration only create tables feat: migration only create tables * Update activities * fix: rebase partial fix * fix: all rebase problems and drop activity target alter * fix: lint * Update migration * Update migration * Fix conflicts * Fix conflicts --------- Co-authored-by: Charles Bochet <charles@twenty.com>
31 lines
536 B
TypeScript
31 lines
536 B
TypeScript
import { gql } from '@apollo/client';
|
|
|
|
import { useGetPersonQuery } from '~/generated/graphql';
|
|
|
|
export const GET_PERSON = gql`
|
|
query GetPerson($id: String!) {
|
|
findUniquePerson(id: $id) {
|
|
id
|
|
firstName
|
|
lastName
|
|
displayName
|
|
email
|
|
createdAt
|
|
city
|
|
jobTitle
|
|
linkedinUrl
|
|
phone
|
|
_activityCount
|
|
company {
|
|
id
|
|
name
|
|
domainName
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export function usePersonQuery(id: string) {
|
|
return useGetPersonQuery({ variables: { id } });
|
|
}
|