# mongo-to-parse

> MongoToParse transform mongo find query to parse-server find query.

Latest version **2.0.53** (published 2026-11-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install mongo-to-parse
pnpm add mongo-to-parse
yarn add mongo-to-parse
bun add mongo-to-parse
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 2.0.53 |
| Published | 2026-11-17 |
| First published | 2020-04-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 199.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1 |
| Author | yog27ray |
| Maintainers | yog27ray |

## Links

- npm: https://www.npmjs.com/package/mongo-to-parse
- Repository: https://github.com/yog27ray/mongoToParse
- Homepage: https://github.com/yog27ray/mongoToParse#readme
- Issues: https://github.com/yog27ray/mongoToParse/issues
- npm.io page: https://npm.io/package/mongo-to-parse

## Recent versions

- 2.0.53 (latest) — 2026-11-17
- 2.0.52 — 2026-11-12
- 2.0.51 — 2026-04-13
- 2.0.50 — 2026-03-14
- 2.0.49 — 2026-03-10
- 2.0.48 — 2026-03-10
- 2.0.47 — 2025-09-21
- 2.0.46 — 2025-09-21
- 2.0.45 — 2025-09-21
- 2.0.44 — 2025-06-24
- 2.0.43 — 2025-01-22
- 2.0.42 — 2025-01-08
- 2.0.41 — 2024-04-10
- 2.0.40 — 2024-04-10
- 2.0.39 — 2024-04-10
- … 72 more at https://npm.io/package/mongo-to-parse/versions

## README

# MongoToParse

MongoToParse transform mongo find query to parse-server find query.

## Getting Started
```
    import { MongoToParseQuery } from 'mongo-to-parse';
    ...
    const mongoToParseQuery = new MongoToParseQuery();
    const result = await new MongoToParseQuery().find(mongoToParseQuery.parseTable('TableName'), { where: { rank: 1 }, option: { useMasterKey: true } } };
```

## Supported mongo operands
1. $and
2. $or
3. $gt
4. $gte
5. $lt
6. $lte
7. $regex
8. $exists
9. $in
10. $eq
11. $nin
12. $ne
13. $all

## additional operands not present in mongo find query.
1. $endsWith
2. $startsWith

## Example
1.
   ```
   const query = new Parse.Query(TestTable);
   query.equalTo('total', 4);
   await query.find();
   ```
    The above parse query is equivalent to mongo query given below
   ```
    await mongoToParseQuery.find(TestTable, { where: { total: 4 } });
   ```
   
2.
    ```
      const query = new Parse.Query(TestTable);
      query.greatherThan('total', 4);
      query.lessThan('total', 40);
      await query.find();
    ```
     The above parse query is equivalent to mongo query given below
    ```
      await mongoToParseQuery.find(TestTable, { where: { total: { $gt: 4, $lt: 40 } } });
    ```
    
3.
    ```
   const query1 = new Parse.Query(TestTable);
   query1.equalTo('rank', 3);
   const query2 = new Parse.Query(TestTable);
   query2.equalTo('total', 2);
   const query = Parse.Query.and(query1, query2);
   query.ascending('rank');
   await query.find();
   ```
    The above parse query is equivalent to mongo query given below
    ```
    await mongoToParseQuery.find(TestTable, { where: { $and: [{ rank: 3 }, { total: 2 }] }, ascending: 'rank' });
    ```

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