Identifying filters

I am working on filters using index. Imagine a GraphQL query like

friend(name: John) {
  ...
}

Here we want to apply the filter name=John. However, there might be other kinds of arguments. Here are some possibilities and I wonder what you all (@minions) think.

  1. Look for = instead of : symbol. If so, this is a filter.
  • Have a list of reserved arguments. If not in list, then it is treated as a filter. If attribute is not indexed, no filtering is applied and the argument is ignored.
  • Require the argument name to satisfy some constraint, e.g., have a filter prefix or suffix.

2 posts were merged into an existing topic: Extending GraphQL