import gql from 'graphql-tag' ; import { client } from '@client/utils/apolloClient' ; export const getRolesQuery = gql `
  query {
    getRoles(active: true) {
      value
      types
    }
  }
` ; async function fetchRoles ( ) { return ( client && client . query ( { query : getRolesQuery , fetchPolicy : 'no-cache' } ) ) ; } export const roleQueries = { fetchRoles } ;