Skip to content

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