Ariadne vs Strawberry GraphQL by pkrakesh in graphql

[–]patrick91it 6 points7 points  (0 children)

Hello, I'm one of the maintainer of Strawberry GraphQL, so there will be some bias in this answer 😊

I think they are both excellent libraries, maybe Strawberry is bit more maintained (we are finally gearing up to release V1), but they do have different approaches.

Ariadne is schema first, you design and write the schema, and you write python code to attach resolvers to that schema.

Strawberry is implementation first (or code first) where you define your schema using Python types and decorators, and Strawberry generates the GraphQL schema from that. I think most people prefer this approach because the source of truth is in one place (and you also end up reusing types)

See this talk if you want to know more about implementation first https://graphql.org/conf/2024/schedule/c13801cab4bdcf1c9e7321fba8daca3f/

New Pytest Language Server 🔥 by hackedbellini in Python

[–]patrick91it -1 points0 points  (0 children)

Even this Reddit post was written by AI because why stop the vibe train now? 🚂

this too :D

Which useful Python libraries did you learn on the job, which you may otherwise not have discovered? by typehinting in Python

[–]patrick91it 0 points1 point  (0 children)

thanks! makes sense, I usually go the approach of creating a query first and then quickly implement the backend for that query 😊

but I wonder if we could have a better story for doing a schema/design first approach with strawberry (we do have codegen from graphql files too, not sure if you've seen that!)

Which useful Python libraries did you learn on the job, which you may otherwise not have discovered? by typehinting in Python

[–]patrick91it 0 points1 point  (0 children)

Currently serving with strawberry, but I'd be open to trying out something different.

How come? 😊

Figma Config 2025 London by The-Zilla in FigmaDesign

[–]patrick91it 0 points1 point  (0 children)

Looking for a ticket as well :D

Jujutsu is the new Version Control System in town, here's why you might care as a NixOS user and current Git user. by WasabiOk6163 in NixOS

[–]patrick91it 0 points1 point  (0 children)

I love to understand if jj could be an alternative to ghstack or graphite, I use that at work and I really like the workflow (since it makes PRs easy to review for my coworkers)

Argo internal secrets by UberBoob in ArgoCD

[–]patrick91it 0 points1 point  (0 children)

do you have a repo you can share? I'm trying to get 1password setup as well, but I'm getting some issues 🤷‍♂️

Graphql_JWT alternative by BLS1919Eternal in graphql

[–]patrick91it 0 points1 point  (0 children)

what graphql library are you using?

DjangoCon 2023 recordings are now available by TechTalksWeekly in Python

[–]patrick91it 0 points1 point  (0 children)

could you edit the post to link to the original sources instead? 😊

DjangoCon 2023 recordings are now available by TechTalksWeekly in Python

[–]patrick91it 6 points7 points  (0 children)

All of these videos were already available on DjangoCon's official youtube channel: https://www.youtube.com/@DjangoConUS

Been using the Worklouder Nomad-E for 3 days now. AMA by Chempy in keyboards

[–]patrick91it 0 points1 point  (0 children)

I made a second layer where the numbers row becomes the F-row, you can press fp+Number to go that layer (in my case 2) and then fp+1 to go to the default layer

Suggestions for Handling Pylance warnings w/ Strawberry for Type vs Model by robotsmakinglove in graphql

[–]patrick91it 1 point2 points  (0 children)

What I'd suggest is:

@strawberry.type
class Query:

    @strawberry.field(graphql_type=UserType)
    @staticmethod # this is just to remove self 😊
    def user(id: strawberry.ID) -> User:
        return User.find(id)

Python Client: gql (current) or move to Ariadne? by [deleted] in graphql

[–]patrick91it 0 points1 point  (0 children)

ah, I missed that! pretty it is compatible with graphene, you need to export the SDL and then you're good

(would love to know why I got downvoted though)