mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
Merge pull request #1576 from oceanprotocol/let-do-any-query-in-aquarius
Let do any query in Aquarius
This commit is contained in:
commit
1e0898f70c
@ -5,24 +5,10 @@ import fetch from 'cross-fetch'
|
|||||||
export interface SearchQuery {
|
export interface SearchQuery {
|
||||||
from?: number
|
from?: number
|
||||||
size?: number
|
size?: number
|
||||||
query: {
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
match?: {
|
query: any
|
||||||
[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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
sort?: { [jsonPath: string]: string }
|
sort?: { [jsonPath: string]: string }
|
||||||
|
aggs?: any
|
||||||
}
|
}
|
||||||
|
|
||||||
export class Aquarius {
|
export class Aquarius {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user