import { gql } from '@apollo/client' ; export const GET_PRODUCT_BY_NAME = gql `
    query getProductsByName($name: String!) {
        results: getProductsByName(name: $name) {
            __typename
            ... on Phone {
                name
                id
            }
            ... on Tablet {
                name
                id
            }
        }
    }
` ;