strawberry-django icon indicating copy to clipboard operation
strawberry-django copied to clipboard

Production Ready?

Open ramzitannous opened this issue 2 years ago • 6 comments

Is this Library ready for production usage, is it supported enough?

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

ramzitannous avatar Dec 24 '21 17:12 ramzitannous

The maintainers certainly don't consider that since the library's version is < 1.0.0.

Anyways, the dev experience with this library is unmatchable. It's a shame we lack documentation

Lucasmiguelmac avatar Jan 30 '22 13:01 Lucasmiguelmac

Right, Strawberry core and django integration, both are still under development. Type generation from models is already quite stable but other areas may still change.

I agree with you that we are lacking documentation. It would be nice to see contributions there as well 😄

la4de avatar Feb 19 '22 19:02 la4de

Not ready for production. I would go for Graphene if you want graphql for production.

There are still issues that are not addressed like nested create mutations, django choices / integer choices / enum support, many to many support query issues with prefetching, permission issues,

I have to say it is easier to write than Ariadne or Graphene but the issue is the docs are not too great.

ccsv avatar Jul 15 '22 08:07 ccsv

Hey @ccsv ,

Although this lib really lacks the support for everything you mentioned here, all of those features/issues are implemented/solved in strawberry-django-plus, which is also going to be merged really soon into this repo.

I have a really big production project running using strawberry-django-plus, async django and even a lot of subscriptions. Using strawberry, which also enforces good typing practices, has allowed us to develop that project a lot faster than we ever could when we were using graphene (which not only has a legacy way of defining things, it is very error prone due to its lack of typing support). I'm planning on writing a blog post regarding how we do things here, because I think one thing that this integration (and also my own lib) is lacking is a good amount of examples on how to do common and advanced things.

bellini666 avatar Jul 15 '22 13:07 bellini666

and even a lot of subscriptions.

@bellini666 Your subscriptions are django specific or just the plain strawberry, ASAIK either SD or SD+ doesn't support subscriptions at the moment. #155

nrbnlulu avatar Jul 29 '22 06:07 nrbnlulu

and even a lot of subscriptions.

@bellini666 Your subscriptions are django specific or just the plain strawberry, ASAIK either SD or SD+ doesn't support subscriptions at the moment. #155

Subscriptions support is going to be available soon using channels: https://github.com/strawberry-graphql/strawberry/pull/1407

It can already be used with pre-releases also.

bellini666 avatar Jul 29 '22 15:07 bellini666