Skip to content

Sorting does not work with GetComponentPresentations method #1

@stanlk

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);

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