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

sort enum arg is being passed in as empty object #443

Open
melpicazo opened this issue Jul 9, 2024 · 0 comments
Open

sort enum arg is being passed in as empty object #443

melpicazo opened this issue Jul 9, 2024 · 0 comments

Comments

@melpicazo
Copy link

melpicazo commented Jul 9, 2024

I'm trying to use the sort arg on a findMany query but it's not working as expected:

GraphQL query:

noteMany(sort: $sort) {
    _id
}

Variables:

{
  "sort": "_ID_DESC",
}

Upon inspection in the wrapResolve function and console logging rp, I'm seeing that the sort arg is coming in as an empty object:

{
  source: undefined,
  args: { limit: 100, sort: String {} },
...

Anyone have any idea on how to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant