07056613
database: expand field map for composite fields
This allows models to fetch multiple SQL columns to obtain the data necessary to compute a single composite GraphQL field, while still avoiding unnecessary fetches if those fields are not queried.
Drew DeVault <sir@cmpwn.com> — 2021-01-08 16:06:53 UTC
Commit 070566136c1ac72c4fe68df71732d0e917eca3a0 —
view raw patch
Parent(s):
900693b8
| File | Status | + | − |
|---|---|---|---|
database/ql.go
|
M | +13 | -4 |
database/sq.go
|
M | +29 | -10 |