Missing information in the Ariadne GraphQL docs

123 Views Asked by At

I'm trying to add authentication to a Flask-GraphQL API that I'm creating, and I'm using Ariadne to handle some of the GraphQL stuff.

The Ariadne docs (specifically page https://ariadnegraphql.org/docs/mutations) defines the resolve_login and resolve_logout functions but references an auth variable with functions login, logout, and authenticate that don't seem to be referenced anywhere else in the docs (so I have no idea what to do with this). Could someone please shed some light on what's going here?

1

There are 1 best solutions below

2
Ranrun On

From the docs(https://ariadnegraphql.org/docs/mutations), it is placeholder methods which needs to be implemented based on type of authenication required.