strawberry-graphql / strawberry-django

Strawberry GraphQL Django extension
https://strawberry.rocks/docs/django
MIT License
404 stars 117 forks source link

Ordering does not work properly with federation gateway #625

Open iamcrookedman opened 1 week ago

iamcrookedman commented 1 week ago

I'm not sure if this is a problem with this library but definitely the current ordering design doesn't work with @apollo/gateway.

The sort order depends on the order of the keys and when requesting the server directly it works as it should, but when requesting through the federation the order of the keys changes to alphabetical. Perhaps the ordering body should be an array to avoid dependence on the order of the keys. I understand that this is a big change in design but in this case we are dependent on how the dictionaries are implemented in one or another part of the system.

Upvote & Fund

Fund with Polar

najeeb-thalakkatt commented 1 week ago

Same issue here