Commit 19f3d92
committed
Make _qb.Path emit a shape with a splat by default
Closes #838
We want to make the query builder API have consistent behavior in
absence of explict query shapes.
Given these three cases:
```python
default.User
default.User.posts
default.User.select(
posts=default.User.posts
)
```
... we'd want all paths without an explict `.select` return all pointers
of the target type, not just the id.
Current behavior:
- case 1: `select User { * }`,
- case 2: `select User.posts`,
- case 3: `select User { posts }`.
---
This PR changes that to:
- case 1: `select User { * }` (unchanged),
- case 2: `select User.posts { * }`,
- case 3: `select User { posts: { * } }`.1 parent cbc4899 commit 19f3d92
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
228 | 230 | | |
229 | 231 | | |
230 | 232 | | |
| |||
822 | 824 | | |
823 | 825 | | |
824 | 826 | | |
825 | | - | |
| 827 | + | |
| 828 | + | |
826 | 829 | | |
827 | 830 | | |
828 | 831 | | |
| |||
0 commit comments