graphql-python / graphql-python/graphene-mongo

Resolver for MongoengineConnectionField - Add Authorization Token

オープン
#145 コメント 0 件 リアクション 2 件 担当者 1 名 @abawchen が担当を希望しています GitHub で見る
good first issue
主要言語
Python
スター
288
フォーク
111
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。