Skip to content

Override operator style #267

Description

@erwinkramer

Details

The current operators for filtering are =, <, > etc... It would be nice to override the behavior so we can specify them like eq, gt, lt for example, without writing custom operators.

Activity

  1. alirezanet commented on Nov 14, 2025

    @alirezanet
    Owner

    Hi @erwinkramer,
    Could you give me an example scenario why do you think we need such feature? it should be easily solvable on the client side with a simple string replace right now.

  2. erwinkramer commented on Nov 15, 2025

    @erwinkramer
    ContributorAuthor

    This is what I'm using now, https://github.com/erwinkramer/bank-api/blob/main/BankApi.Core/Defaults/Helper.GridQuery.cs

    And it's directly implemented in a minimal API as an incoming parameter, like so https://github.com/erwinkramer/bank-api/blob/main/BankApi.Core/Implementation/Operation.Bank.cs#L7

    It would be nice to have this feature, so we can get more closer style to OData or any other standard that someone wants to follow.

    Simple string replace could be possible, but it's not very pretty doing it for all 12 conditional operators each time someone makes a request to an API.

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 request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions