Skip to content

Allow specifying type of field for parameters #9

Description

@petrsvihlik

Motivation

new OrderParameter($"elements.{Article.PublishDateCodename}", SortOrder.Descending)) is not very nice.

It would be great if OrderParameter (and perhaps some others) allowed specifying the type of the codename parameter.

Proposed solution

new OrderParameter(FieldType.Element, "Article.PublishDateCodename", SortOrder.Descending))

The enum could be defined such as:

enum FieldTypeEnum
{
 Element,
 System,
....
}

Originally reported in kontent-ai/delivery-sdk-net#241 (comment)

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

    enhancementNew feature or requesthacktoberfesthttps://hacktoberfest.digitalocean.com/up-for-grabshttps://up-for-grabs.net/

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions