2018-11-06 10:30:27 +01:00
|
|
|
import gql from 'graphql-tag';
|
|
|
|
|
2019-04-24 19:01:39 +02:00
|
|
|
export const SEARCH_EVENTS = gql`
|
2018-11-06 10:30:27 +01:00
|
|
|
query SearchEvents($searchText: String!) {
|
2019-04-24 19:01:39 +02:00
|
|
|
searchEvents(search: $searchText) {
|
|
|
|
total,
|
|
|
|
elements {
|
2018-11-06 10:30:27 +01:00
|
|
|
title,
|
|
|
|
uuid,
|
2019-04-03 17:29:03 +02:00
|
|
|
beginsOn,
|
2019-04-24 19:01:39 +02:00
|
|
|
tags {
|
|
|
|
slug,
|
|
|
|
title
|
|
|
|
},
|
2018-11-06 10:30:27 +01:00
|
|
|
__typename
|
2019-04-24 19:01:39 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const SEARCH_GROUPS = gql`
|
|
|
|
query SearchGroups($searchText: String!) {
|
|
|
|
searchGroups(search: $searchText) {
|
|
|
|
total,
|
|
|
|
elements {
|
2019-05-22 14:12:11 +02:00
|
|
|
avatar {
|
|
|
|
url
|
|
|
|
},
|
2018-11-07 16:09:28 +01:00
|
|
|
domain,
|
2018-11-06 10:30:27 +01:00
|
|
|
preferredUsername,
|
2019-04-03 17:29:03 +02:00
|
|
|
name,
|
2018-11-06 10:30:27 +01:00
|
|
|
__typename
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-12-21 17:10:39 +01:00
|
|
|
`;
|
2019-05-29 16:46:23 +02:00
|
|
|
|
|
|
|
export const SEARCH_PERSONS = gql`
|
|
|
|
query SearchPersons($searchText: String!) {
|
|
|
|
searchPersons(search: $searchText) {
|
|
|
|
total,
|
|
|
|
elements {
|
|
|
|
id,
|
|
|
|
avatar {
|
|
|
|
url
|
|
|
|
},
|
|
|
|
domain,
|
|
|
|
preferredUsername,
|
|
|
|
name,
|
|
|
|
__typename
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|