Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F1262840
matches.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
786 B
Referenced Files
None
Subscribers
None
matches.ts
View Options
import
{
Query
}
from
"../../../main"
;
import
type
QueryStage
from
"../../../datastore/query-stage"
;
import
SpecialFilter
from
"../../../chip-types/special-filter"
;
export
default
class
Matches
extends
SpecialFilter
{
constructor
(
collection_name
:
string
,
public
filter
:
{
[
field_name
:
string
]
:
any
}
)
{
super
(
collection_name
,
filter
);
}
async
getFilteringQuery
()
{
let
pipeline
:
QueryStage
[]
=
[];
for
(
let
field_name
in
this
.
filter
)
{
const
field_pipeline
=
await
this
.
getCollection
().
fields
[
field_name
].
getAggregationStages
(
new
this
.
app
.
SuperContext
(),
this
.
filter
[
field_name
]
);
pipeline
=
pipeline
.
concat
(
field_pipeline
);
}
return
Query
.
fromCustomPipeline
(
pipeline
);
}
getNopassReason
()
{
return
this
.
params
.
nopass_reason
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Fri, Jan 24, 15:16 (20 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
601019
Default Alt Text
matches.ts (786 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment