New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

loopback-deep-filter

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loopback-deep-filter

loopback-component-filter update

latest
Source
npmnpm
Version
2.0.2
Version published
Maintainers
1
Created
Source

loopback-deep-filter

LoopBack

Developers**

Alan Mamani (creator) - alanfernando93.am@gmail.com - https://gitlab.com/alanfernando93

Huáscar Miranda Martínez (collaborator) - huascarm@gmail.com - https://github.com/huascarmm

Installation

Install using npm;

$ npm install loopback-deep-filter

Install using yarn;

$ yarn add loopback-deep-filter

Basic Use

Configure and load LoopbackFilterComponent in the application constructor as shown below.

import { DeepCrudRepository } from "@monkey-space/loopback-component-filter";

replace DefaultCrudRepository to DeepCrudRepository in folder repositories

export class TrackingRoomRepository extends DeepCrudRepository<
  TrackingRoom,
  typeof TrackingRoom.prototype.id,
  TrackingRoomRelations
> {
  // Only the Find property is affected by the base repository DeepCrudRepository
...

Format filter

body example to filter format

{
  "where": {
    "payments": "undefined", // Returns all entities if `payments` is different to undefined (it is required)
    "payments.name": "example",
    "payments.description": "valueToEqual"
  },
  "include": ["payments"]
  // Order, Fields, Limit remains the configuration
}

more examples, folder _/src/tests/integration_

FAQs

Package last updated on 13 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts