Skip to content

Commit

Permalink
Bugfix #1979 Add more options to UserOrderByInput (#1980)
Browse files Browse the repository at this point in the history
* bugfixed 1979 admin

* additional changes in bug 1979

* Formatting Fixed

* added test cases

* updated test cases
  • Loading branch information
rahulch07 authored Jun 17, 2024
1 parent 4ed0795 commit ff79bd3
Show file tree
Hide file tree
Showing 4 changed files with 464 additions and 77 deletions.
2 changes: 2 additions & 0 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1440,6 +1440,8 @@ enum UserOrderByInput {
id_DESC
lastName_ASC
lastName_DESC
createdAt_ASC
createdAt_DESC
}

type UserPhone {
Expand Down
2 changes: 2 additions & 0 deletions src/GraphQl/Queries/Queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export const USER_LIST = gql`
$lastName_contains: String
$skip: Int
$first: Int
$order: UserOrderByInput
) {
users(
where: {
Expand All @@ -116,6 +117,7 @@ export const USER_LIST = gql`
}
skip: $skip
first: $first
orderBy: $order
) {
user {
_id
Expand Down
Loading

0 comments on commit ff79bd3

Please sign in to comment.