diff --git a/js/src/graphql/actor.ts b/js/src/graphql/actor.ts index e23c5d073..431ba2b84 100644 --- a/js/src/graphql/actor.ts +++ b/js/src/graphql/actor.ts @@ -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 { diff --git a/js/src/graphql/comment.ts b/js/src/graphql/comment.ts index cf3f5da1a..3da23909b 100644 --- a/js/src/graphql/comment.ts +++ b/js/src/graphql/comment.ts @@ -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 diff --git a/js/src/graphql/config.ts b/js/src/graphql/config.ts index 37c5649c8..d0a049621 100644 --- a/js/src/graphql/config.ts +++ b/js/src/graphql/config.ts @@ -1,7 +1,7 @@ import gql from "graphql-tag"; export const CONFIG = gql` - query { + query FullConfig { config { name description diff --git a/js/src/graphql/event.ts b/js/src/graphql/event.ts index f231fe9e3..114c92246 100644 --- a/js/src/graphql/event.ts +++ b/js/src/graphql/event.ts @@ -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 diff --git a/js/src/graphql/user.ts b/js/src/graphql/user.ts index 1eba90fbb..80a74fd58 100644 --- a/js/src/graphql/user.ts +++ b/js/src/graphql/user.ts @@ -91,7 +91,7 @@ export const SUSPEND_USER = gql` `; export const CURRENT_USER_CLIENT = gql` - query { + query CurrentUserClient { currentUser @client { id email