Skip to content

Sorting does not work with GetComponentPresentations method #1

Description

@stanlk

GetComponentPresentations sorting does not work when you pass InputSortParam. Tried different options, but still the same. However, this request works well if I use regular GraphQL request.

Here is example of my code:

            InputComponentPresentationFilter cpFilter = new InputComponentPresentationFilter()
            {
                Keyword = new InputKeywordCriteria()
                {
                    CategoryName = "Your Growth",
                    Key = "Mentorship"
                }
            };

            InputSortParam sort = new InputSortParam()
            {
                Order = SortOrderType.Descending,
                SortBy = SortFieldType.UPDATED_DATE
            };

            var results = client.GetComponentPresentations(ContentNamespace.Sites, 7, cpFilter, sort, null, null, ContentIncludeMode.IncludeJsonAndRender, null);

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