faunadb-python icon indicating copy to clipboard operation
faunadb-python copied to clipboard

Usage with Django ORM

Open 1oglop1 opened this issue 4 years ago • 4 comments

Hi, I've been reading about the Fauna and it looks very promising.

However, I maintain several Django applications and I wonder what would it take to integrate the Fauna clients with Django ORM so that the application does not require massive refactoring?

Thank you.

1oglop1 avatar Aug 09 '21 14:08 1oglop1

I have the same question. It's a pitty the Fauna team doesn't check this repo

klauss194 avatar Dec 17 '21 21:12 klauss194

If you can detail the problems that you are encountering, that would help us develop appropriate solutions.

faunaee avatar Dec 17 '21 22:12 faunaee

@faunaee I'm not sure how familiar are you with Django but there is a concept of "backends" to integrate python SQL client

It is possible to use GraphQL with graphene-django built on top of graphene another option is Ariadne

However, both solutions expect a typical SQL backend, while Fauna requires a Driver to communicate with Fauna API.

There is also another very popular ORM project SQL Alchemy that has been integrated with graphene.

It would be great if Fauna docs could provide guidance on integrating any of these popular solutions together. Or ideally, if Fauna can provide a package that developers would need to install. I believe this would help to raise the popularity of using Fauna among the python developers.

1oglop1 avatar Dec 18 '21 07:12 1oglop1

Thanks for the feedback!

Since Fauna is a "NoSQL" database, and its query philosophy differs notably from SQL's, none of the SQL integrations is going to be helpful.

We're primarily database developers, and not Django developers. So it might be best to look for community-driven integrations until we can provide something ourselves (which could be quite a long way off).

faunaee avatar Dec 20 '21 17:12 faunaee