menu

Ariadne GraphQL

Ariadne is a Python library for implementing GraphQL servers using schema-first approach.

Channels
Team
Posts
Members
Info

How to do file upload?

Hi, I am seeing the file object on the server side, and I can see it has a filename, and a file attribute. How can I save it to a folder? Any example? Thanks!

thumbsup
0
message-simple
4

Implementing efficient resolvers for "complex" structures

Hi! My service is backed by a Postgresql database. I have a top level query for some Entity. The entity has a field, which would require an additional query to the database. Obviously I want to execute this work only, if the field is queried for and my first question is: How do…

thumbsup
0
message-simple
3

how to implement jwt authentication in ariadne as a middleware

Hihi, I would like to use jwt authentication in ariadne as a middleware and use schema directives per query field to check if a user has access to this specific query field. I could use context_value but is there another solution? Any help really appreciated!

thumbsup
1
message-simple
9

Subscription example

Hello everyone! To be honest, my primary reason to move from Graphene to Ariadne was subscription support. The example from the documentation works fine, but I'm looking for more robust solution that doesn't involve infinite loop with sleep and constant checking for some…

thumbsup
0
message-simple
22

implementing subscription for multiple worker

Hi, i am trying to implement subscription for multiple workers, if requesting one subscription two times then after some times first socket is ditched automatically. not sure how to implement multiple worker at same time. any idea ,please prodive any suggestion. Thanks

thumbsup
0
message-simple
4

How does authorization work with subscriptions/websockets?

On the client-side, apollo-link-ws seems to put authorization information, such as bearer tokens, into the first WS message. On ariadne side, currently it seems additional properties of the GQL_CONNECTION_INIT message are not saved or made available to the user-supplied side. As…

thumbsup
2
message-simple
1

Implementing subscriptions on AWS serverless

Hi, I am playing with my first GraphQL server and deploying it on AWS Lambda. This works great for queries and mutations, but obviously will not work for subscriptions since we need a long-running connection over a websocket. So, my thought is to manage the websocket connection…

thumbsup
0
message-simple
2

Rate Limiting Requests?

Is there a way to rate limit certain queries or mutations based on ip or other factors? Many public apis have rate limiting and I'm wondering how that would be implemented with Ariadne.

thumbsup
0
message-simple
4

how to write test for ariadne graphql.

Is there any tutorial or blog post about testing ariadne with Django? How to write unit/integration test for ariadne graphql ?

thumbsup
0
message-simple
10

Does ariadne support typing rules for resolvers?

I've been comparing GraphQL frameworks, and I have two big desires: static typing and schema-first development styles. Ariadne is the obvious solution for schema-first development, but it doesn't appear to support static typing (mypy) of resolvers. Am I missing something or are…

thumbsup
0
message-simple
15