npm i fluent-criteria
https://stackblitz.com/edit/fluent-criteria-example
import { FluentCriteria } from 'fluent-criteria';
import { IUser, users } from './users.dataset';
const criteria = new FluentCriteria<IUser>();
const usersWithEmail = criteria.search.email.defined.find(users);
console.log('Users with email: ', usersWithEmail);
const usersAsAdmin = criteria.search.role.equal('admin').find(users);
console.log('Users that are admin: ', usersAsAdmin);
const usersWithThumbnailWithPixels =
criteria.search.profile.thumbnail.pixels.defined.find(users);
console.log('Users with thumbnail and pixels: ', usersWithThumbnailWithPixels);
const { FluentCriteria } = require('fluent-criteria');
import { FluentCriteria } from 'fluent-criteria';
import { FluentCriteria } from 'fluent-criteria';
This project is licensed under the GNU AFFERO GENERAL PUBLIC LICENSE
- see the LICENSE file for details