I have a queries file that looks like this:
import {gql} from \'react-apollo\'; const queries = { getApps: gql` { apps { id name
const { loading: cat_loading, cat_error, data: cat_data } = useQuery(categoriesAllQuery) const { loading: prod_loading, prod_error, data: prod_data } = useQuery(productsAllQuery) if (cat_loading || prod_loading) return Loading ... const { categoriesAll } = cat_data const { productsAll } = prod_data
Loading ...