Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying type of field for parameters #260

Open
petrsvihlik opened this issue Jan 22, 2021 · 0 comments
Open

Allow specifying type of field for parameters #260

petrsvihlik opened this issue Jan 22, 2021 · 0 comments
Labels
enhancement filters Stories related to queries and filters. hacktoberfest up-for-grabs

Comments

@petrsvihlik
Copy link
Contributor

petrsvihlik commented Jan 22, 2021

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 #241 (comment)

@petrsvihlik petrsvihlik added enhancement hacktoberfest up-for-grabs filters Stories related to queries and filters. labels Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement filters Stories related to queries and filters. hacktoberfest up-for-grabs
Projects
None yet
Development

No branches or pull requests

1 participant