lucasrochagit / nest-mongo-query-parser

A MongoDB query string parser to be used in applications developed with NestJS.
Apache License 2.0
12 stars 8 forks source link

QueryObjectModel import statement #7

Closed DocAmaroo closed 1 year ago

DocAmaroo commented 1 year ago

Description

I discover that the QueryObjectModel was not exported in the model index.ts and ended up having multiple import statement:

// model/index.ts
export { MongoQueryModel } from './mongo.query.model';

and it ended up causing import statement has below in my code:

// import statement in my code
import { MongoQueryModel } from 'nest-mongo-query-parser';
import { QueryObjectModel } from 'nest-mongo-query-parser/dist/lib/model/mongo.query.model';

There is maybe a reason for that.

Alternative/Solutions

If it's possible, it would be great to export the QueryObjectModel next to the MongoQueryModel and simplify the import statement.

lucasrochagit commented 1 year ago

For sure, man. Btw sorry for the delay in responding you. I will provide this.