graphql-python / graphene-django

Build powerful, efficient, and flexible GraphQL APIs with seamless Django integration.
http://docs.graphene-python.org/projects/django/en/latest/
MIT License
4.29k stars 767 forks source link

DjangoFilterConnectionField does not use source arg #988

Open wkoot opened 4 years ago

wkoot commented 4 years ago

Using the starwars example app for explanation.

Insert two Factions with one ship each to the db, e.g.:

dummy = Character.objects.create(name="dummy")
rebels = Faction.objects.create(name="Rebels", hero=dummy)
empire = Faction.objects.create(name="Empire", hero=dummy)
Ship.objects.create(name="X-Wing", faction=rebels)
Ship.objects.create(name="Death Star", faction=empire)

The following query will return both ships, instead of only the X-Wing:

{
  factions(name: "Rebels") {
    edges {
      nodes {
        name
        ships {
          edges {
            nodes {
              name
            }
          }
        }
      }
    }
  }
}
stale[bot] commented 4 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.