Corporation-of-Doom / plan-with-doom

GNU General Public License v3.0
2 stars 1 forks source link

Backend: Waitlist #97

Closed alliyya closed 5 years ago

alliyya commented 5 years ago

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!

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
}

Functionality

Bug Fixes

alliyya commented 5 years ago

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!

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
}

Functionality

Bug Fixes