UNPKG

@iexec/dataprotector

Version:

This product enables users to confidentially store data–such as mail address, documents, personal information ...

26 lines 752 B
import { gql } from 'graphql-request'; import { throwIfMissing } from '../../../utils/validators.js'; export async function getProtectedDataInBulkByBulkRequestHash({ pocoSubgraphClient = throwIfMissing(), bulkRequestHash = throwIfMissing(), }) { const dealsQuery = gql ` query ($where: Deal_filter) { deals(where: $where) { tasks { taskId: id bulkSlice { datasets { id } } } } } `; const variables = { where: { requestorder: bulkRequestHash, }, }; const res = await pocoSubgraphClient.request(dealsQuery, variables); return res; } //# sourceMappingURL=getProtectedDataInBulkByBulkRequestHash.js.map