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-05 11:42:23 +02:00
|
|
|
query SearchEvents(
|
|
|
|
$location: String
|
|
|
|
$radius: Float
|
|
|
|
$tags: String
|
|
|
|
$term: String
|
|
|
|
$beginsOn: DateTime
|
|
|
|
$endsOn: DateTime
|
|
|
|
) {
|
|
|
|
searchEvents(
|
|
|
|
location: $location
|
|
|
|
radius: $radius
|
|
|
|
tags: $tags
|
|
|
|
term: $term
|
|
|
|
beginsOn: $beginsOn
|
|
|
|
endsOn: $endsOn
|
|
|
|
) {
|
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-08-05 16:44:08 +02:00
|
|
|
query SearchGroups($term: String, $location: String, $radius: Float) {
|
|
|
|
searchGroups(term: $term, location: $location, radius: $radius) {
|
2020-02-18 08:57:00 +01:00
|
|
|
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) {
|
2020-08-05 16:44:08 +02:00
|
|
|
searchPersons(term: $searchText, page: $page, limit: $limit) {
|
2020-02-18 08:57:00 +01:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|