1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

let do any query in Aquarius

This commit is contained in:
Miquel A. Cabot 2022-08-03 11:37:13 +02:00
parent f7ad59bf5f
commit 02b805a45d

View File

@ -5,24 +5,10 @@ import fetch from 'cross-fetch'
export interface SearchQuery {
from?: number
size?: number
query: {
match?: {
[property: string]:
| string
| number
| boolean
| Record<string, string | number | boolean>
}
// eslint-disable-next-line camelcase
query_string?: {
[property: string]: string | number | string[] | number[] | boolean
}
// eslint-disable-next-line camelcase
simple_query_string?: {
[property: string]: string | number | string[] | number[] | boolean
}
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
query: any
sort?: { [jsonPath: string]: string }
aggs?: any
}
export class Aquarius {