feat: search activities (#972)

This commit is contained in:
Jérémy M
2023-07-28 19:02:56 +02:00
committed by GitHub
parent 2304823dc6
commit 3daebd0e0c
4 changed files with 142 additions and 24 deletions

View File

@ -17,6 +17,8 @@ export const SEARCH_PEOPLE_QUERY = gql`
city
firstName
lastName
displayName
avatarUrl
createdAt
}
}
@ -68,3 +70,21 @@ export const SEARCH_COMPANY_QUERY = gql`
}
}
`;
export const SEARCH_ACTIVITY_QUERY = gql`
query SearchActivity(
$where: ActivityWhereInput
$limit: Int
$orderBy: [ActivityOrderByWithRelationInput!]
) {
searchResults: findManyActivities(
where: $where
take: $limit
orderBy: $orderBy
) {
id
title
body
}
}
`;