Socket
Socket
Sign inDemoInstall

api-builder-plugin-filterarrayofobjects

Package Overview
Dependencies
12
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    api-builder-plugin-filterarrayofobjects

A plugin for Axway API Builder


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
2.25 MB
Created
Weekly downloads
 

Readme

Source

API Builder Plugin to Filter an Array Based on a Keys Value

Axway API Builder flow-node that use the array filter() method to return a filtered array based on a key's value: api-builder-plugin-filterarrayofobjects. This is a common requirement for processing API responses for retrieving desired array elements.

Note: Currently only supports String and Number values

About flow-nodes

Flow-nodes are used within Axway API Builder's flow editor that is a low-code / no-code solution to designing and developing services that integrate to many different connected components, such as databases and APIs.

Install

After creating your API Builder Project, you can install this plugin using npm:

npm install api-builder-plugin-filterarrayofobjects

Note that this command will install from npm. If you want to install locally, then provide the full path to the plugin folder

Use

Find the plugin in the extension group in the Flow-Nodes panel. Drag onto the canvas and select the desired method and provide the input and wire up to the rest of your flow as shown below:

Methods

The currently implemented methods are described below.

Filter

Provide the Array, Key and Value inputs and the output will be similar to below:

Array = [{a:'100', b:'red'}, {a:'200', b:'green'}, {a:'300', b:'blue'}]

Key = 'b'

Value = 'green'

{
  a:'200',
  b:'green'
}

Keywords

FAQs

Last updated on 19 Sep 2022

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc