Files
twenty/front/src/modules/people/queries/show.ts
Jérémy M d0641084f9 feat: rename comment thread into activity (#939)
* 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>
2023-07-27 23:22:16 -07:00

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