Event Schema is of the type : Event:
_id {UID}
name {String}
details {String}
start_date_utc {Datetime}
end_date_utc {Datetime}
source {String} e.g. TicketMaster
organizer: {String}
venue {id, name, city, country, zip, state, location: {Latitude, Longitude, timezone}}
category: String
tags: [String]
image_url_full: String
Image_url_small: String
public_action: String
event_manager_id {event manager id}
API users should be able to filter events by any of the schema types, e.g. start/end date, organizer, details, category, tags, venue e.t.c. These are optional fields that are added to the query params
e.g. endpoint/events?index=location&lat={}&long={}&radius=20 means find events within a 20 mile radius of a specified location but for this same query you can also add endpoint/events?index=location&lat={}&long={}&radius=20&start_date_utc=00:00:00 to find events after a specified start date.
So we need to iterate through all the query params in express to build the query
Event Schema is of the type : Event:
_id {UID} name {String} details {String} start_date_utc {Datetime} end_date_utc {Datetime} source {String} e.g. TicketMaster organizer: {String} venue {id, name, city, country, zip, state, location: {Latitude, Longitude, timezone}} category: String tags: [String] image_url_full: String Image_url_small: String public_action: String event_manager_id {event manager id}
API users should be able to filter events by any of the schema types, e.g. start/end date, organizer, details, category, tags, venue e.t.c. These are optional fields that are added to the query params e.g. endpoint/events?index=location&lat={}&long={}&radius=20 means find events within a 20 mile radius of a specified location but for this same query you can also add endpoint/events?index=location&lat={}&long={}&radius=20&start_date_utc=00:00:00 to find events after a specified start date. So we need to iterate through all the query params in express to build the query