In my project, I have a list of events. I want to be able to filter them in various ways. For example:
- Get the events where the virtual event URL is NOT an empty string.
- Get events that fall between two dates.
- Get events within a radius of an address.
I know these filters require custom code to be written. I just don’t know where to put it. I was reading this doc: https://dgraph.io/docs/graphql/custom/dql/
The above doc uses a complex example with two steps. It first counts the number of a user’s followers, then sorts tweets by the number of followers of the author. I can’t tell if this applies to my use case or not.
So, what is the best way to create parameterized queries?