Skip to content
Snippets Groups Projects
Commit 60ee8be0 authored by Wilson JALLET's avatar Wilson JALLET :money_with_wings:
Browse files

update to type defs

parent f7297294
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ const RootTypes = `
user(uid: ID) : [User]
allEvents: [Event]
asAdmin: AdminQuery
asAdmin(groupUID: ID): AdminQuery
allPosts: [Post]
......@@ -65,13 +65,7 @@ const subMutations = `
}
type SpeakerMutation{
postEvent(
name: String
date: String
): String
postEvent(name: String, date: String): Event
}
type MemberMutation {
......@@ -120,7 +114,7 @@ const Group = `
updatedAt: String!
description: String
school: String
parentuid: String
parent: Group
}
`;
......@@ -159,23 +153,24 @@ const Events = `
const Requests = `
type Requests {
userJoinRequests: [userJoinRequest]
eventJoinRequests: [eventJoinRequest]
hostEventRequests: [hostEventRequest]
userJoin: [userJoinGroup]
eventJoin: [groupJoinEvent]
hostEvent: [groupHostEvent]
}
type userJoinRequest{
type userJoinGroup {
user: User
}
type eventJoinRequest{
event : Event
groupWantingToJoin : Group
type groupJoinEvent {
event: Event
groupWantingToJoin: Group
}
type hostEventRequest{
event : Event
groupInviting : Group
# Demande au récipiendaire de rejoindre l'organisation d'un événement.
type groupHostEvent {
event: Event
recipient: Group
}
`;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment