Add parameters for time range, and pass these into the graphql query as arguments.
Add parameters for time range, and pass these into the graphql query as arguments.