menu

Ariadne GraphQL

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

Channels
Team
Posts
Members
Info

GraphQl Playground settings

Is there any way to change default settings in graphql playground, programmatically, in the code?

thumbsup
0
message-simple
1

Documentation for Rate Limiting in Ariadne?

I see from this PR https://github.com/mirumee/ariadne/pull/185 that query cost validator was merged into master and available for 0.12? Since I don't think 0.12 is released, has anyone tried to document its use or test it? It's become important we implement this on our API,…

thumbsup
2
message-simple
3

How to use background tasks with Starlette?

I'm hoping to avoid any use of Celery at the moment. In Starlette's docs they give two ways to add background tasks: 1. Via Graphene: https://www.starlette.io/graphql/ 2. Via a JSON response https://www.starlette.io/background/ …

thumbsup
0
message-simple
6

Return Cookie in Response Headers Based on Response Content

For security reasons, I want to return a cookie if the login mutation is successful. I know ariadne doesn't handle cookie generation, but I was wondering if anyone has done this before or has an idea about how to do it. Thanks!

thumbsup
1
message-simple
5

Issue with following the Demmy Web App: Registering fields to the query...

...Is giving me issues We can see in this file: https://gitlab.com/heathercreech/demmy/-/blob/version-2/server/demmy_webapp/gql/types/query/get_career.py The only time this function resolve\_get\_career() is there, and the @query.field('getCareer') works to register the function…

thumbsup
2
message-simple
8

How do I resolve GraphQL with sub-field filters?

I am new to ariadne and probably doing this wrong, but I am trying to create a schema that allows me to perform a GraphQL query using subfields: So this should give me messages for AIS dataType and Static broadcastType. My query must look like the above (can't change…

thumbsup
0
message-simple
7

Does GraphQLError Terminate a Query?

I'm writing some mutations that perform bulk operations, and am in the process of testing cases where users might provide a mix of good and bad input data. Ideally, in this case I'd like to return a GraphQLError for each failure, but resolve and return the successful mutations.…

thumbsup
0
message-simple
3

Disable Playground ?!

Hi, I've read some discussion about this topic in the Github issues but I would like to know if there is anything new in how to disable the Playground interface as well as Introspection query ? Best Regards. …

thumbsup
0
message-simple
3

Adding HttpOnly cookie

Can i add a HttpOnly cookie to the response when using starlette and ariadne? I'm having trouble implementing this.

thumbsup
0
message-simple
3

Input fields validation using directives

I want to validate input fields using directives but I wasn't able to do it with plain ariadne. The https://ariadnegraphql.org/docs/next/api-reference#visit_input_field_definition function is called only when I start my server and not on every call to a resolver of a…

thumbsup
1
message-simple
4