graphql-python / graphql-python/graphene-mongo

Resolver for MongoengineConnectionField - Add Authorization Token

Abierto
#145 0 comentarios 2 reacciones 1 asignado Reclamado por @abawchen Ver en GitHub
good first issue
Lenguaje dominante
Python
Estrellas
287
Forks
111
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Hi

I have been using graphene-mongo for a while now. I use all resolvers and mutations post validation of an Access token in the HTTP `Authorization` header. However, I am not aware of how I can do that for a `MongoengineCollectionField`

For example, I have defined it as follows
```python
class Query(graphene.ObjectType):
all_projects_to_models = MongoengineConnectionField(Project)
```

and it works functionally as expected

My question is, what does this object return? and is there a way I can write a resolver for this with the Authorization validation done before allowing access

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.