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