graphql-python / graphql-python/graphene-sqlalchemy

All columns are selected by default?

未關閉
#100 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
985
分支
223
PR 合併指標
30 天內沒有已合併 PR

描述

When I print out the raw sql command, I found that all columns are selected. Does it make sense?

I think only those specified from the frontend should be included. The following command is how I get the raw sql.

`print(query.statement.compile(compile_kwargs={"literal_binds": True}))`

Thanks.

貢獻指南

開啟貢獻指南

研究方向

從建構 GraphQL-to-SQLAlchemy 查詢開始,該查詢會產生由 query.statement.compile(compile_kwargs={"literal_binds": True}) 顯示的陳述式。追蹤前端選取的欄位如何表示,並確認是否可以排除未要求的欄位。完成條件是產生的 SQL 只選取要求的欄位,並有一個回歸測試涵蓋該行為。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
graphql, python, sqlalchemy
領域
api, databases
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。