graphql-python / graphql-python/graphene-mongo

Resolver for MongoengineConnectionField - Add Authorization Token

Open
#145 0 comments 2 reactions 1 assignee Claimed by @abawchen View on GitHub
good first issue
Dominant language
Python
Stars
287
Forks
111
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.