**What**
Align the index engine API to be similar to the Query API
## Example
```ts
// Benefit from the same level of typing like the remote query
const { data, metadata } = await indexEngine.query<'product'>({
fields: [
"product.*",
"product.variants.*",
"product.variants.prices.*",
],
filters: {
product: {
variants: {
prices: {
amount: { $gt: 50 },
},
},
},
},
pagination: {
order: {
product: {
variants: {
prices: {
amount: "DESC",
},
},
},
},
},
})
```
32 lines
756 B
JSON
32 lines
756 B
JSON
{
|
|
"compilerOptions": {
|
|
"lib": ["es5", "es6", "es2019"],
|
|
"target": "es2022",
|
|
"outDir": "./dist",
|
|
"esModuleInterop": true,
|
|
"declarationMap": true,
|
|
"declaration": true,
|
|
"module": "commonjs",
|
|
"moduleResolution": "node",
|
|
"emitDecoratorMetadata": true,
|
|
"experimentalDecorators": true,
|
|
"sourceMap": true,
|
|
"noImplicitReturns": true,
|
|
"strictNullChecks": true,
|
|
"strictFunctionTypes": true,
|
|
"noImplicitThis": true,
|
|
"allowJs": true,
|
|
"skipLibCheck": true,
|
|
"downlevelIteration": true // to use ES5 specific tooling
|
|
},
|
|
"include": ["src", "./medusa/**/*"],
|
|
"exclude": [
|
|
"./dist/**/*",
|
|
"__tests__",
|
|
"helpers",
|
|
"./**/helpers",
|
|
"./**/__snapshots__",
|
|
"node_modules"
|
|
]
|
|
}
|