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

View file

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

View file

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

View file

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

View file

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