UnlyEd/next-right-now-admin

View on GitHub
src/gql/common/layoutQuery.ts

Summary

Maintainability
A
0 mins
Test Coverage
import gql from 'graphql-tag';

import { theme } from '../fragments/theme';

/**
 * Used in all pages
 */
export const LAYOUT_QUERY = gql`
  query LAYOUT_QUERY($customerRef: String!){
    customer(where: {
      ref: $customerRef,
    }){
      id
      label
      theme {
        ...themeFields
      }
    }
  }
  ${theme.themeFields}
`;