Skip to content

Error while doing sort on field for searchConnection method #107

Description

@appasahebs

Error while doing sort on field for searchConnection method. Specially its not working with "date" type of fields.

Query
postConnection(query: {bool: {must: [
{term: {type: {value: "type"}}}]}},
sort: [post_date__desc], first: 12, after: $after) {

Output
 {"errors":[{"message":"Cannot read property 'join' of undefined","locations":[{"line":2,"column":3}],"path":["postConnection"]}],"data":{"postConnection":null}}

Please let me know if I am missing something.

Activity

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

      Issue actions