Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix #1979 Add more options to UserOrderByInput #1980

Merged
merged 6 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading