graphql-python / graphql-python/graphene
graphene_client does not return expected data queried with an order_by
- Vorherrschende Sprache
- Python
- Sterne
- 8.2k
- Forks
- 818
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
I am using pytest-django graphene-django and the first test went well, but one I add a query with an order by. I always get ascending records while I want the opposite. Moreover, in GraphQL view everything works fine when I query with an order_by.
I think that data should be returned as JSON instead of dictionaries from `graphene_client.execute()`.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Start by reproducing the order_by case through graphene_client.execute() and compare its result with the GraphQL view, as described in the issue. Trace how the client result is represented and verify that descending ordering is preserved; done means the client returns the expected ordered data and the regression is covered by a test.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- django, graphql, python
- Bereich
- api, testing-qa
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100