Skip to content

Is there a sort or orderBy option? #72

Open

Description

@thomas-arun

I was wondering if this library has a sort or orderBy feature which can be used on certain fields.
I was unable to find any in the documentation and I was unable to make the graphene django orderBy work too.

Activity

  1. rapsealk commented on Jun 8, 2023

    @rapsealk
    Contributor

    I have the same requirements with you. Do you have a plan to implement this by yourself?

  2. thomas-arun commented on Jun 8, 2023

    @thomas-arun
    CollaboratorAuthor

    I actually did implement it.

    I wrote a new class which inherits from AdvancedDjangoFilterConnectionField, accepts a parameter orderBy and overrides the resolve_queryset method

  3. rapsealk commented on Jun 8, 2023

    @rapsealk
    Contributor

    @thomas-arun Thanks for sharing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions