menu

Ariadne GraphQL

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

Channels
Team
Posts
Members
Info
down-caret

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 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 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

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

Request Data and Cookies using ASGI Django Channels

I have a front-end React Apollo application that requests data from the Django ASGI back-end. I created my ASGI application with Django Channels using the guidelines found here. From the field resolver methods, there is no way to access cookies sent from the front-end to the…

thumbsup
2
message-simple
20

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 resolve visit_argument_definition

how do you resolve a visit_argument_definition? the docs do not have good information on what is available to resolve this and the field definition example cannot be applied. i am trying to apply a default value to an argument on execution. directive: im not quite sure how to…

thumbsup
0
message-simple
0

Default value for enum

Hi, I'm having some trouble with a schema that defines default values for enum typed arguments. Here's a simplified example: But the JSON object returned by the IntrospectionQuery shows a defaultValue of "null". I don't see anything in the documentation about how to make sure…

thumbsup
0
message-simple
19

visit_object resolution

I am implementing auth on my schemas and am wondering how to do it before the result is executed. I assume the best way to do this is to attach the directive to the OBJECT instead of the FIELD_DEFINITION? Is this correct? If so, is there any good example of how to resolve the…

thumbsup
0
message-simple
5

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