import gql from "graphql-tag";

export const SEARCH = gql`
  mutation search(
      $query: String!
  ) {
    search(
        query: $query
    ) {
      results {
        brands {
          uuid
          slug
          name
        }
        categories {
          name
          slug
          uuid
        }
        posts {
          uuid
          slug
          name
        }
        products {
          name
          slug
          uuid
        }
      }
    }
  }
`