Closed alliyya closed 5 years ago
Waitlist mutations have been modified to not use participant object
addUserToEventWaitlist(userID: Int!, eventID: Int!): Int!
removeUserFromEventWaitlist(userID: Int!, eventID: Int!): Int!
addUserToSeminarWaitlist(userID: Int!, seminarID: Int!): Int!
removeUserFromSeminarWaitlist(userID: Int!, seminarID: Int!): Int!
mutation addUserToEventWaitlist($user: Int!, $event: Int!) {
addUserToEventWaitlist(userID: $user, eventID: $event)
}
mutation removeUserFromEventWaitlist($user: Int!, $event: Int!) {
removeUserFromEventWaitlist(userID: $user, eventID: $event)
}
mutation removeUserFromSeminarWaitlist($user: Int!, $seminar: Int!) {
removeUserFromSeminarWaitlist(userID: $user, seminarID: $seminar)
}
mutation addUserToSeminarWaitlist($user: Int!, $seminar: Int!) {
addUserToSeminarWaitlist(userID: $user, seminarID: $seminar)
}
#query variables
# seminar 5 is full as is event 2 from sample data
{
"user": 9,
"seminar": 5,
"event": 2
}
closes #99
getMyWaitlistedEventsAndSeminars(userID: Int!, type: String, limit: Int, offset: Int): [SearchResult!]
Operates similarly to get myManagingEvents/
{
getMyWaitlistedEventsAndSeminars(userID: 9) {
__typename
... on Event {
id
creator_id
name
}
... on Seminar {
id
name
event_id
}
}
}
Updated: November 23rd 2018:
New mutations
Waitlist mutations have been modified to not use participant object
addUserToEventWaitlist(userID: Int!, eventID: Int!): Int!
removeUserFromEventWaitlist(userID: Int!, eventID: Int!): Int!
addUserToSeminarWaitlist(userID: Int!, seminarID: Int!): Int!
removeUserFromSeminarWaitlist(userID: Int!, seminarID: Int!): Int!
Functionality
New Resolver
closes #99
getMyWaitlistedEventsAndSeminars(userID: Int!, type: String, limit: Int, offset: Int): [SearchResult!]
Operates similarly to get myManagingEvents/Bug Fixes