Skip to content

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

Open
@melpicazo

Description

@melpicazo

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions