Add some names to the GQL queries

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-05-17 18:19:24 +02:00
parent bab751591f
commit 732785919a
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
5 changed files with 18 additions and 12 deletions

View File

@ -373,7 +373,7 @@ export const LOGGED_USER_MEMBERSHIPS = gql`
`;
export const IDENTITIES = gql`
query {
query Identities {
identities {
id
avatar {
@ -453,7 +453,10 @@ export const PERSON_MEMBERSHIP_GROUP = gql`
`;
export const GROUP_MEMBERSHIP_SUBSCRIPTION_CHANGED = gql`
subscription ($actorId: ID!, $group: String!) {
subscription GroupMembershipSubscriptionChanged(
$actorId: ID!
$group: String!
) {
groupMembershipChanged(personId: $actorId, group: $group) {
id
memberships {

View File

@ -53,7 +53,7 @@ export const COMMENT_RECURSIVE_FRAGMENT = gql`
`;
export const FETCH_THREAD_REPLIES = gql`
query ($threadId: ID!) {
query FetchThreadReplies($threadId: ID!) {
thread(id: $threadId) {
...CommentRecursive
}
@ -62,7 +62,7 @@ export const FETCH_THREAD_REPLIES = gql`
`;
export const COMMENTS_THREADS = gql`
query ($eventUUID: UUID!) {
query CommentThreads($eventUUID: UUID!) {
event(uuid: $eventUUID) {
id
uuid
@ -75,7 +75,7 @@ export const COMMENTS_THREADS = gql`
`;
export const COMMENTS_THREADS_WITH_REPLIES = gql`
query($eventUUID: UUID!) {
query CommentThreadsWithReplies($eventUUID: UUID!) {
event(uuid: $eventUUID) {
id
uuid

View File

@ -1,7 +1,7 @@
import gql from "graphql-tag";
export const CONFIG = gql`
query {
query FullConfig {
config {
name
description

View File

@ -76,7 +76,7 @@ const optionsQuery = `
`;
export const FETCH_EVENT = gql`
query($uuid:UUID!) {
query FetchEvent($uuid:UUID!) {
event(uuid: $uuid) {
id,
uuid,
@ -532,7 +532,7 @@ export const DELETE_EVENT = gql`
`;
export const PARTICIPANTS = gql`
query($uuid: UUID!, $page: Int, $limit: Int, $roles: String) {
query Participants($uuid: UUID!, $page: Int, $limit: Int, $roles: String) {
event(uuid: $uuid) {
id,
uuid,
@ -551,7 +551,7 @@ export const PARTICIPANTS = gql`
`;
export const EVENT_PERSON_PARTICIPATION = gql`
query ($actorId: ID!, $eventId: ID!) {
query EventPersonParticipation($actorId: ID!, $eventId: ID!) {
person(id: $actorId) {
id
participations(eventId: $eventId) {
@ -572,7 +572,10 @@ export const EVENT_PERSON_PARTICIPATION = gql`
`;
export const EVENT_PERSON_PARTICIPATION_SUBSCRIPTION_CHANGED = gql`
subscription ($actorId: ID!, $eventId: ID!) {
subscription EventPersonParticipationSubscriptionChanged(
$actorId: ID!
$eventId: ID!
) {
eventPersonParticipationChanged(personId: $actorId) {
id
participations(eventId: $eventId) {
@ -593,7 +596,7 @@ export const EVENT_PERSON_PARTICIPATION_SUBSCRIPTION_CHANGED = gql`
`;
export const FETCH_GROUP_EVENTS = gql`
query (
query FetchGroupEvents(
$name: String!
$afterDateTime: DateTime
$beforeDateTime: DateTime

View File

@ -91,7 +91,7 @@ export const SUSPEND_USER = gql`
`;
export const CURRENT_USER_CLIENT = gql`
query {
query CurrentUserClient {
currentUser @client {
id
email