I need to GET app data corresponding to a specific time range (e.g. January 1, 2019 to January 8, 2019). Does the JourneyApps API support querying data via a date
and/or datetime
range?
If so, what does a range
query look like versus a singleton
(or "single-object") query? Are there any formatting requirements when performing a time-based query?
Example scenario for context:
In my schema I have a DB model named thing
. The thing
model has the field created_at
and the corresponding field type
is datetime
(<field name="created_at" type="datetime"/>)
.
- Can I use
1546326000000
as an argument in my query for findingthing
objects in the database or do I need to format this value to an ISO-8601 string (in this case,Tue Jan 01 2019 00:00:00 GMT-0700
)?