Hello. I have a custom object that has a date property. In the graphiql query can I filter by that date property to only show records that have a date newer than the current date? The only way I have been able to filter in the graphiql playground is by setting a date in ISO 8601 format. I was hoping there is a way to get the current to filter from. Thanks.
@Jaycee_Lewis thanks for the response. Do you know of a way to do the conversion outside the query? I am not sure if this would be done within the graphiql file itself or in the page template that has the graphiql file attached to it.
As of now, there is no direct date filtering option available. What you can do here is you could generate the current date in your application code and pass it into the GraphQL query as a variable. This would allow you to always filter by a date newer than the current date.
I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member. Thanks!
Hey, @LSeth👋 Based on my understating of the documentation, GraphQL doesn't offer dynamic date generation inside the query itself. As you noted, you'll need to convert the date into ISO8601 outside the query and then use it to get the result you are after.