biothings-explorer-filters

1.0.1 • Public • Published

biothings_explorer_filters.js

npm Build Status Coverage Status
NodeJS library delivering Filter features for BioThings Explorer

Install

npm install biothings-explorer-filters

Usage

const filterResults = require("biothings-explorer-filters");

//other code for setting up and using call-apis package
let results = queryExecutor.result; //get results from call-apis package

let options = {
    sort_by: "ngd_overall",
    max_results: 10
};
results = await filterResults(results, options);

Options

Param Type Description
sort_by String Field to sort by, can be either "ngd_overall" or "ngd_starred"
max_results Number Maximum results to return

Run Tests

npm run test

Readme

Keywords

Package Sidebar

Install

npm i biothings-explorer-filters

Weekly Downloads

0

Version

1.0.1

License

Apache-2.0

Unpacked Size

19.6 kB

Total Files

6

Last publish

Collaborators

  • ericz1803