github nuwave/lighthouse v2.1-beta.3
Eloquent Argument Filters

latest releases: v6.36.3, v6.36.2, v6.36.1...
pre-release6 years ago

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.

Don't miss a new lighthouse release

NewReleases is sending notifications on new releases.