-
Notifications
You must be signed in to change notification settings - Fork 823
PyMongo and/or Mongoengine Integration #51
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
Comments
As temporary workaround I used https://github.com/msoedov/flask-graphql-example/blob/master/ql.py#L13-L20 def resolve_user(self, args, info):
u = User.objects.get(email=args.get('email'))
return construct(UserField, u) |
Hello, I started a project for MongoEngine integration https://github.com/dmzkrsk/graphene-mongoengine I copied code from It's in pretty early stage, I have no docs, tests, but it has working fields, relations, relay. Mutations not tested yet. Please join, test on your projects, add tests, etc |
@dmzkrsk that's great to know take a look at https://github.com/RisingStack/graffiti-mongoose, it's have the same ideia but for JS |
Hi is there any movement on this issue to the best of your knowledge @syrusakbary @dmzkrsk? |
i did a impl here https://github.com/ozanturksever/graphene-mongoengine |
wheee, nobody did tests in their implementations. |
FYI: https://github.com/yfilali/graphql-pynamodb is a recent implementation for dynamodb, Amazon's NoSQL database. I am not too familiar with mongodb, but the basic structure should be very similar to @ozanturksever implementation. I also had the need to implement relationship attributes. So maybe that could be of use to the mongo port. The MongoDB documentation on "Model One-to-Many Relationships with Document References" seems pretty close to the pattern I ended up implementing: https://docs.mongodb.com/v3.0/tutorial/model-referenced-one-to-many-relationships-between-documents/ |
As of the time of writing, there are two Graphene-MongoEngine integrations: Would love to integrate one or another into the Closing the issue, but please comment if you would like to be the official maintainer for |
hmm, seems to me that neither of those implementations are complete... not all object types are supported, for example, and relations are also not supported by either implementation. |
Allow subclassing of SQLAlchemyObjectType without major API changes
Fix missing operation_name warning
Hello, After checking, these 2 repos So I start https://github.com/abawchen/graphene-mongo, which supports one-to-one with Hope it helps. Thanks @tomasgarzon & @ozanturksever, got a lot from your implementation! 🍻 |
Based on @abawchen initiative, we started the official repo Graphene-mongo that @abawchen will be leading. Any more contributors will be welcome, so please write here if anyone is interested. |
It should be useful to have a mongoengine easy integration
The text was updated successfully, but these errors were encountered: