import { ProviderResource , ProviderResult } from "../types" ; import client , { q } from "./client" ; export default function getProviders ( providers ) { return client . query ( q . Map ( providers , q . Lambda ( "provider" , q . Get ( q . AccessProvider ( q . Select ( "name" , q . Var ( "provider" ) ) ) ) ) ) ) ; }