Make Categories a predefined list

Signed-off-by: Thomas Citharel <tcit@tcit.fr>

Allow null values for categories for now

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-02-22 16:54:01 +01:00
parent 75554cd3f5
commit 7086fe8389
27 changed files with 89 additions and 655 deletions

View File

@@ -25,6 +25,7 @@ export const FETCH_EVENT = gql`
thumbnail,
large_image,
publish_at,
category,
# online_address,
# phone_address,
organizerActor {
@@ -39,10 +40,7 @@ export const FETCH_EVENT = gql`
# },
participants {
${participantQuery}
},
category {
title,
},
}
}
}
`;
@@ -75,9 +73,7 @@ export const FETCH_EVENTS = gql`
preferredUsername,
name,
},
category {
title,
},
category,
participants {
${participantQuery}
}
@@ -112,9 +108,9 @@ export const EDIT_EVENT = gql`
$title: String!,
$description: String!,
$organizerActorId: Int!,
$categoryId: Int!
$category: String!
) {
EditEvent(title: $title, description: $description, organizerActorId: $organizerActorId, categoryId: $categoryId) {
EditEvent(title: $title, description: $description, organizerActorId: $organizerActorId, category: $category) {
uuid
}
}