realm/realm-graphql-service

Add support for filter/skip/limit/etc arguments of children fields

Opened this issue ยท 3 comments

Title says it all.

http://graphql.org/learn/schema/#arguments tells me it's possible ๐Ÿ˜ƒ

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 ๐Ÿค“