Open eliedrian opened 6 years ago
By children fields, do you mean collection properties (to many relationship)? So you can have something like:
query {
companies {
companyId
name
address
employees(query: "isActive = true", skip: 10, take: 10)
}
}
Exactly! And ofcourse
query {
companies(query: "isActive = false") { # that is, inactive companies
companyId
name
address
employees(query: "isActive = true", skip: 10, take: 10) # but active employees
}
}
should work as well
Sounds like a nice addition. I'll add it to our backlog, but in the meantime, we'd be happy to review a PR if you'd like to take a stab at it 🤓
Title says it all.
http://graphql.org/learn/schema/#arguments tells me it's possible 😃