# cloud-sdk-json-query

> Use MongoDB-like JSON Queries to query create ODATA Requests with the SAP Cloud SDK for JS

Latest version **1.0.6** (published 2021-07-21) · All Rights Reserved license · 0 weekly downloads

## Install

```sh
npm install cloud-sdk-json-query
pnpm add cloud-sdk-json-query
yarn add cloud-sdk-json-query
bun add cloud-sdk-json-query
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2021-07-21 |
| First published | 2021-07-21 |
| Weekly downloads | 0 |
| License | All Rights Reserved |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 27 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Jannis Rosenbaum |
| Maintainers | sinnaj-r |

## Links

- npm: https://www.npmjs.com/package/cloud-sdk-json-query
- npm.io page: https://npm.io/package/cloud-sdk-json-query

## Dependencies (3)

- [object-path](https://npm.io/package/object-path.md) ^0.11.5
- [@sap-cloud-sdk/core](https://npm.io/package/@sap-cloud-sdk/core.md) =1.46.0
- [@sap-cloud-sdk/util](https://npm.io/package/@sap-cloud-sdk/util.md) =1.46.0

## Recent versions

- 1.0.6 (latest) — 2021-07-21
- 1.0.5 — 2021-07-21

## README

# Cloud Sdk Json Query

[![codecov](https://codecov.io/gh/sinnaj-r/cloud-sdk-json-query/branch/master/graph/badge.svg?token=DIY8WNR1J6)](https://codecov.io/gh/sinnaj-r/cloud-sdk-json-query)

Use MongoDB-esque JSON Queries to query create ODATA Requests (via the SAP Cloud SDK).

## Install

Install from the NPM repository using yarn or npm:

```shell
yarn add cloud-sdk-json-query
```

```shell
npm install cloud-sdk-json-query
```

## Usage

```ts
import { createRequest } from 'cloud-sdk-json-query';
import { ExampleItem1 } from './client/generated/by/sdk/...';

const query = {
  filter: { num1: 42 },
  top: 10,
};

// Create Request
const request = createRequest(ExampleItem1, query);

// Execute Request (with SAP Cloud SDK for Javascript)
const result = await request.execute({ url: 'https://...' });
```

For more examples take a look at the tests.

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