Skip to content

Commit

Permalink
Remove top-level User GraphQL field
Browse files Browse the repository at this point in the history
  • Loading branch information
williamjallen committed Mar 30, 2024
1 parent b5efd13 commit 55fb20a
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,6 @@ scalar DateTime @scalar(class: "Nuwave\\Lighthouse\\Schema\\Types\\Scalars\\Date

"Indicates what fields are available at the top level of a query operation."
type Query {
"Find a single user."
user(
"Search by primary key."
id: ID @eq @rules(apply: ["prohibits:email", "required_without:email"])

"Search by email address."
email: String @eq @rules(apply: ["prohibits:id", "required_without:id"])
): User @find

"List multiple users."
users(
"Filters by email. Accepts SQL LIKE wildcards `%` and `_`."
email: String @where(operator: "like")
): [User!]! @all @orderBy(column: "id")

"Find a single project."
project(
"Search by primary key."
Expand Down

0 comments on commit 55fb20a

Please sign in to comment.