Skip to content

Example forum - input sort with " not working #164

Description

@adalidda

Hi,

In the documentation, the sort option is used with ", example year: "desc" but in example forum if I used

query: `
  categories(input: {sort: {name: "asc"}}) {
    results {
        _id
        name
        slug
      }
    }
  `,

I got an error.

If I change it to

query: `
  categories(input: {sort: {name: asc}}) {
    results {
        _id
        name
        slug
      }
    }
  `,

It's working !

Thank You
Adalidda

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