Closed Kashuab closed 1 year ago
Implemented, published version 0.0.42
Actually, changed my mind. Instead of chaining functions, you can now pass an args
argument to the query. This allows for support of required args:
const userQuery = new UserQuery(
{ id: 1234 },
user => user
.email
.name
.posts(
{ first: 10, sort: "ascending" },
post => post.title.content
)
);
We need to implement the ability to, within a selection builder, provide arguments for nested queries:
I'm not sure what the most intuitive approach would be. Here's the first thought that comes to mind: