@iexec/dataprotector
Version:
This product enables users to confidentially store data–such as mail address, documents, personal information ...
21 lines • 562 B
JavaScript
import { gql } from 'graphql-request';
import { throwIfMissing } from '../../../utils/validators.js';
export async function getUserAddOnlyAppWhitelistQuery({ graphQLClient = throwIfMissing(), user, }) {
const addOnlyAppWhitelistsQuery = gql `
query {
addOnlyAppWhitelists(
where: { owner: "${user}" }
) {
id
owner {
id
}
apps {
id
}
}
}
`;
return graphQLClient.request(addOnlyAppWhitelistsQuery);
}
//# sourceMappingURL=getUserAddOnlyAppWhitelistQuery.js.map