Skip to content

Eloquent Argument Filters

Pre-release
Pre-release

Choose a tag to compare

@chrissm79 chrissm79 released this 16 Apr 01:27
· 3696 commits to master since this release

Created @where, @whereBetween, @whereNotBetween, @eq, @notEq, @in, @notIn argument directives to filter queries.

type User {
  id: ID!
  name: String
  email: String
}

type Query {
  # filter users with an `id` in the provided array
  users(include: [Int] @in(key: "id")): [User!]!
    @paginate(model: "Tests\\\Utils\\\Models\\\User")
}

Until docs are released, check out the tests here.