import { compileFilter, compileSorter } from "scim-query-filter-parser";
const results = [{ userName: "somebody123" }, { userName: "somebody456" }]
.filter(compileFilter('userName eq "somebody123"'))
.sort(compileSorter("userName"));
This implements a parser and compiler for the filtering and sorting features defined in System for Cross-Domain Identity Management (SCIM) Protocol 2.0. It was originally built for use by AuthX;
Compile a SCIM filter expression into a function.
Compile a SCIM sort expression into a function.