feat: search activities (#972)
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user