Skip to content

Reconsider design of filters #25

@simonw

Description

@simonw

Follow on from #12. Got some great tips from Bret on Twitter: https://twitter.com/binarybret/status/1291191732579827714

Did you consider making filters part of the schema instead of strings?

A couple of examples of what I’m talking about:

https://grandstack.io/docs/graphql-filtering/

https://pypi.org/project/graphene-sqlalchemy-filter/

https://realtime-location-tracking.demo.hasura.app/console

As a reminder, filters currently look like this:

{
  repos(filters: ["license=apache-2.0", "stargazers_count__gt=10"]) {
  ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions