How do you create parameterized graphql queries?

My schema was basically the same as your example. When I tried those types of queries I got the error:

Field "virtualEventUrl" is not defined by type EventFilter.

My problem was that I needed to add the search annotation to the virtualEventUrl field:

@search(by: [hash])

Now it works. Thank you.

Created a docs PR. Docs(GraphQL): Emphasize that @search annotation is required for filtering on predicates by catherineluse · Pull Request #247 · dgraph-io/dgraph-docs · GitHub