{"id":31200612,"url":"https://github.com/anton-grebenkin/queryfilter","last_synced_at":"2026-06-15T20:31:22.003Z","repository":{"id":183933040,"uuid":"671001059","full_name":"Anton-Grebenkin/QueryFilter","owner":"Anton-Grebenkin","description":"a library that provides to apply serialized filters to IQueryable collections","archived":false,"fork":false,"pushed_at":"2024-07-15T11:23:38.000Z","size":280,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-29T04:40:15.300Z","etag":null,"topics":["dotnet","dotnet-core","expressions","filtering","iqueryable","library","query-builder"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Anton-Grebenkin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-26T10:08:42.000Z","updated_at":"2025-02-03T09:56:54.000Z","dependencies_parsed_at":"2024-05-11T09:22:53.520Z","dependency_job_id":null,"html_url":"https://github.com/Anton-Grebenkin/QueryFilter","commit_stats":null,"previous_names":["anton-grebenkin/queryfilter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Anton-Grebenkin/QueryFilter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anton-Grebenkin%2FQueryFilter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anton-Grebenkin%2FQueryFilter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anton-Grebenkin%2FQueryFilter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anton-Grebenkin%2FQueryFilter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anton-Grebenkin","download_url":"https://codeload.github.com/Anton-Grebenkin/QueryFilter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anton-Grebenkin%2FQueryFilter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276092023,"owners_count":25583699,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-20T02:00:10.207Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dotnet","dotnet-core","expressions","filtering","iqueryable","library","query-builder"],"created_at":"2025-09-20T11:59:36.819Z","updated_at":"2025-09-20T11:59:38.279Z","avatar_url":"https://github.com/Anton-Grebenkin.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QueryFilter\nA library that provides to apply serialized filters to IQueryable collections\n\n## Features\n- Filtering\n- Paging\n- Sorting\n\n## Usage\nCreating single filter with sorting and paging\n```csharp\nvar filter = new Filter\n{\n   MainNode = new FilterNode\n   {\n      ExpressionOperator = ExpressionOperatorType.GreaterThan,\n      PropertyName = nameof(Item.Id),\n      Value = 1\n   },\n   Sorts = new List\u003cPropertySort\u003e()\n   {\n      new PropertySort\n      {\n         Desc = true,\n         PropertyName = nameof(Item.Id)\n      }\n   },\n   Skip = 10,\n   Take = 100 \n};\n\n```\n\nCreating multiple filters with a logical operator \"or\". It is possible to create many filters with nesting and logical operators \"and\" and \"or\"\n```csharp\nvar filter = new Filter\n{\n   MainNode = new FilterNode\n   {\n      LogicalOperator = LogicalOperatorType.Or,\n      FilterNodes = new List\u003cFilterNode\u003e\n      {\n         new FilterNode\n         {\n            ExpressionOperator = ExpressionOperatorType.GreaterThan,\n            PropertyName = nameof(Item.Id),\n            Value = 1\n         },\n         new FilterNode\n         {\n            ExpressionOperator = ExpressionOperatorType.LessThan,\n            PropertyName = nameof(Item.Id),\n            Value = 100\n         }\n      }\n   },\n   Sorts = new List\u003cPropertySort\u003e()\n   {\n      new PropertySort\n      {\n         Desc = true,\n         PropertyName = nameof(Item.Id)\n      }\n   },\n   Skip = 10,\n   Take = 100 \n};\n\n```\n\n\nApply filter\n```csharp\n  public ActionResult\u003cIEnumerable\u003cItem\u003e\u003e GetItems([FromBody] Filter filter)\n  {\n    var items = db.Items.ApplyFilter(filter).ToList();\n    return Ok(items);\n  }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanton-grebenkin%2Fqueryfilter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanton-grebenkin%2Fqueryfilter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanton-grebenkin%2Fqueryfilter/lists"}