# objection-find-query

> query paramter constructor for objection-find

Latest version **0.2.0** (published 2016-09-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install objection-find-query
pnpm add objection-find-query
yarn add objection-find-query
bun add objection-find-query
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2016-09-23 |
| First published | 2016-09-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | AFM Sayem |
| Maintainers | afmsayem |
| Keywords | objection, objection.js, objection-find |

## Links

- npm: https://www.npmjs.com/package/objection-find-query
- Repository: https://github.com/afm-sayem/objection-find-query
- Homepage: https://github.com/afm-sayem/objection-find-query#readme
- Issues: https://github.com/afm-sayem/objection-find-query/issues
- npm.io page: https://npm.io/package/objection-find-query

## Recent versions

- 0.2.0 (latest) — 2016-09-23
- 0.1.0 — 2016-09-18

## README

## objection-find-query

[![Build Status](https://travis-ci.org/afm-sayem/objection-find-query.svg?branch=master)](https://travis-ci.org/afm-sayem/objection-find-query)

Construct complex api query on the frontend, for endpoints implementing [objection-find](https://github.com/Vincit/objection-find).


Usage:

```javascript

/*
  expected format:
  {
    op: {
      column: value
    }
  }

  sample input:
  {
    gt: {
      released: 1953,
      gross_income: 200000,
      actors: {
        age: 23
      }
    },
    lt: {
      released: 1984
    },
    in: {
      ratings: [3, 4]
    }
  }

  output:
  {
    'released:gt': 1953,
    'gross_income:gt': 200000,
    'actors.age:gt': 23,
    'released:lt': 1984,
    'ratings:in': [3, 4]
  }
*/

const ofq = require('objection-find-query');
const formattedParams = ofq.format(params);

```

## Installation

`npm install objection-find-query`

---
_Source: https://npm.io/package/objection-find-query · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
