UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

19 lines (18 loc) 547 B
import { ColumnSingleValueFilterOperator as l } from "@sage-bionetworks/synapse-types"; function u(e, t, n) { if (!e || e.length !== 1) throw new Error("rowSelectionPrimaryKey must be defined and have length 1"); const o = n.findIndex( (r) => r.name === e[0] ); return { concreteType: "org.sagebionetworks.repo.model.table.ColumnSingleValueQueryFilter", columnName: e[0], operator: l.IN, values: t.map((r) => r.values[o]) }; } export { u as getPrimaryKeyINFilter }; //# sourceMappingURL=QueryFilterUtils.js.map