Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolver for MongoengineConnectionField - Add Authorization Token #145

Open
abhaybhargav opened this issue Apr 9, 2020 · 0 comments
Open
Assignees
Labels
good first issue Good for newcomers

Comments

@abhaybhargav
Copy link

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

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

@abawchen abawchen self-assigned this Oct 30, 2020
@abawchen abawchen added the good first issue Good for newcomers label Oct 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants