Skip to content

Support for objects.order_by #141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 30, 2020
Merged

Conversation

zhangyuz
Copy link

Use it like this:
class XXX(MongoengineObjectType):
class Meta:
model:SomeModel
interfaces:(Node,)
order_by: 'some order_by clause used by
SomeeModel.object().order_by'

That's all, try it out.

Signed-off-by: Zhang Yuzheng [email protected]

@abawchen
Copy link
Collaborator

@zhangyuz : Thanks for this PR, and would you please add corresponding test case?

Use it like this:
class XXX(MongoengineObjectType):
    class Meta:
        model:SomeModel
        interfaces:(Node,)
        order_by: 'some order_by clause used by
                   SomeeModel.object().order_by'

That's all, try it out.

Signed-off-by: Zhang Yuzheng <[email protected]>
@zhangyuz
Copy link
Author

@zhangyuz : Thanks for this PR, and would you please add corresponding test case?

test case updated, but I am not sure whether it's enough, please help to check.

@abawchen abawchen merged commit e7bef85 into graphql-python:master Jun 30, 2020
arunsureshkumar pushed a commit to arunsureshkumar/graphene-mongo that referenced this pull request Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants