fetchOrgEvents method
String fetchOrgEvents (String orgId)
Implementation
String fetchOrgEvents(String orgId) {
return """
query {
eventsByOrganization(id: "$orgId"){
_id
organization {
_id
image
}
title
description
isPublic
isRegisterable
recurring
recurrance
startDate
endDate
allDay
startTime
endTime
location
creator{
_id
firstName
lastName
}
admins {
firstName
lastName
}
registrants {
user {
_id
}
}
}
}
""";
}