Enabling to check if member is invited

This commit is contained in:
Unknown committed 2019-02-10 19:25:54 +01:00
1 parent 2a5e2898f3
commit a9c8bdd652
1 file changed
+3
+3
View File
@@ -13,6 +13,7 @@ const args = {
state: { type: EventStateEnum },
hostId: { type: GraphQLString },
participantId: { type: GraphQLString },
inviteeId: { type: GraphQLString },
minStartDate: { type: GraphQLInt },
maxStartDate: { type: GraphQLInt },
minEndDate: { type: GraphQLInt },
@@ -23,6 +24,7 @@ const resolve = (parent, {
state,
hostId,
participantId,
inviteeId,
minStartDate,
maxStartDate,
minEndDate,
@@ -39,6 +41,7 @@ const resolve = (parent, {
state ? { state } : { state: { $nin: [UNPUBLISHED, ARCHIVED] } },
hostId ? { hostId } : {},
participantId ? { participants: { $elemMatch: { participantId } } } : {},
inviteeId ? { invitations: { $elemMatch: { inviteeId } } } : {},
minStartDate || maxStartDate
? {
startDatetime: