passing context to GraphQLView no more supported?
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
README の GraphQLView コンテキスト例と GraphQLView のエントリポイントから始め、1.4.1 の動作をリンク先のコメントにある未文書化の回避策と比較します。実行時にデータベースセッションを渡すためのサポートされた方法を確認し、それに応じて README または動作を更新できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hi and thanks for the geat job.
With 1.4.1 version I used to pass my DB session via the context option of the GraphQLView as still mentioned in the README (which should be updated).
Below is an exemple of what I was doing:
# [...]
db_session = scoped_session(
sessionmaker(autocommit=False, autoflush=False, bind=engine))
# [...]
app.add_url_rule(
'/graphql', view_func=GraphQLView.as_view(
'graphql', schema=SCHEMA, graphiql=True,
context={'session': db_session}))
# [...]
It seems this is no more possible and I can't figure out how to pass the DB session to the GraphQLView. Any information and/or updated doc would be nice.
Any solution to continue passing DB session via the GraphQLView (or by any other way allowing to pass it at execution time) would be perfect.
EDIT: for an undocumented but working solution see @cockscomb 's comment
- 主要言語
- Python
- スター
- 1.3k
- フォーク
- 139
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
graphql-python/flask-graphql のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
graphql-python/flask-graphql#92 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
graphql-python/flask-graphql#85 · コメント 2 件 · リアクション 1 件 ·
-
CSRF Exemption? オープン
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
graphql-python/flask-graphql#84 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
graphql-python/flask-graphql#80 · コメント 9 件 · リアクション 2 件 ·
graphql-python/flask-graphql の issue をすべて見る
似ている issue
-
essnmx good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
-
[Feature] 奇物选择添加优先级 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
syfoud/Simulated_Scepter#174 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Giskard-AI/giskard-oss#2840 · コメント 1 件 ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success オープンarea: repo bug perceived difficulty: 2
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
yeti-platform/yeti#1380 ·