2020-02-18 08:57:00 +01:00
|
|
|
import gql from "graphql-tag";
|
2018-11-06 10:30:27 +01:00
|
|
|
|
2019-04-24 19:01:39 +02:00
|
|
|
export const SEARCH_EVENTS = gql`
|
2020-08-03 17:34:50 +02:00
|
|
|
query SearchEvents($location: String, $radius: Float, $tags: String, $term: String) {
|
|
|
|
searchEvents(location: $location, radius: $radius, tags: $tags, term: $term) {
|
2020-02-18 08:57:00 +01:00
|
|
|
total
|
|
|
|
elements {
|
2019-04-24 19:01:39 +02:00
|
|
|
title
|
2020-02-18 08:57:00 +01:00
|
|
|
uuid
|
|
|
|
beginsOn
|
|
|
|
picture {
|
|
|
|
url
|
|
|
|
}
|
|
|
|
tags {
|
|
|
|
slug
|
|
|
|
title
|
|
|
|
}
|
|
|
|
__typename
|
|
|
|
}
|
2019-04-24 19:01:39 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const SEARCH_GROUPS = gql`
|
2020-02-18 08:57:00 +01:00
|
|
|
query SearchGroups($searchText: String!) {
|
|
|
|
searchGroups(search: $searchText) {
|
|
|
|
total
|
|
|
|
elements {
|
|
|
|
avatar {
|
|
|
|
url
|
|
|
|
}
|
|
|
|
domain
|
|
|
|
preferredUsername
|
|
|
|
name
|
|
|
|
__typename
|
|
|
|
}
|
2018-11-06 10:30:27 +01:00
|
|
|
}
|
|
|
|
}
|
2018-12-21 17:10:39 +01:00
|
|
|
`;
|
2019-05-29 16:46:23 +02:00
|
|
|
|
|
|
|
export const SEARCH_PERSONS = gql`
|
2020-02-18 08:57:00 +01:00
|
|
|
query SearchPersons($searchText: String!, $page: Int, $limit: Int) {
|
|
|
|
searchPersons(search: $searchText, page: $page, limit: $limit) {
|
|
|
|
total
|
2019-05-29 16:46:23 +02:00
|
|
|
elements {
|
2020-02-18 08:57:00 +01:00
|
|
|
id
|
2019-05-29 16:46:23 +02:00
|
|
|
avatar {
|
|
|
|
url
|
2020-02-18 08:57:00 +01:00
|
|
|
}
|
|
|
|
domain
|
|
|
|
preferredUsername
|
|
|
|
name
|
2019-05-29 16:46:23 +02:00
|
|
|
__typename
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|