graphql-compose-mongoose icon indicating copy to clipboard operation
graphql-compose-mongoose copied to clipboard

`sort` enum arg is being passed in as empty object

Open melpicazo opened this issue 1 year ago • 0 comments

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?

melpicazo avatar Jul 09 '24 20:07 melpicazo