Skip to content

swaggerUI config for enabling sorting? #1702

@f1-outsourcing

Description

@f1-outsourcing

When clicking a bit through this ui I am getting this error. I was wondering if my 'default' setup needs to be changed for this.

  "message": "Variable \"$sort\" got invalid value [{}] at \"sort[0]\"; Field \"0\" is not defined by type \"UserSort\"."
type Query {
    databaseStatus: String
    actors: [Person]
}

schema {
    query: Query
}

type Person @node {
    name: String
    created: BigInt
}

type User @node {
    created: BigInt
    username: String
    enabled: Boolean
    password: String
    name: String
    apikey: String
}

Activity

f1-outsourcing

f1-outsourcing commented on Feb 26, 2025

@f1-outsourcing
Author

Is it possible to remove/hide this where stuff, only going to use name / id

{
  "name": "string",
  "name_EQ": "string",
  "name_IN": [
    "string"
  ],
  "name_CONTAINS": "string",
  "name_STARTS_WITH": "string",
  "name_ENDS_WITH": "string",
  "created": 0,
  "created_EQ": 0,
  "created_IN": [
    0
  ],
  "created_LT": 0,
  "created_LTE": 0,
  "created_GT": 0,
  "created_GTE": 0,
  "OR": [
    {}
  ],
  "AND": [
    {}
  ],
  "NOT": {}
}
ardatan

ardatan commented on Mar 3, 2025

@ardatan
Member

Please share an isolated minimal reproduction on CodeSandbox, like I asked the other issues/discussions you've created;
#1710 (reply in thread)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @f1-outsourcing@ardatan

        Issue actions

          swaggerUI config for enabling sorting? · Issue #1702 · graphql-hive/SOFA