imranhsayed / woo-next

:rocket: React WooCommerce theme, built with Next JS, Webpack, Babel, Node, Express, using GraphQL and Apollo Client
https://codeytek.com/course/woocommerce-with-react-course/
879 stars 260 forks source link

How can query wooCountries from graphql #80

Closed trithien98 closed 3 years ago

trithien98 commented 3 years ago

Hi , i had install 2 plugin wp-graphql and wp-graphql-woocomerce in new version update from plugin folder. And i want to query country , after install 2 plugin ,I cant see field wooCountries from graphql ide .So how can i do this.Thank you `import { gql } from "@apollo/client";

/**

export default GET_COUNTRIES;`

omaSpencer commented 3 years ago

Hi, same issue for me. I get this error message: Cannot query field "wooCountries" on type "RootQuery".

omaSpencer commented 3 years ago

@trithien98 , need to install Headless CMS plugin too.

trithien98 commented 3 years ago

@trithien98 , need to install Headless CMS plugin too.

yah. i miss this plugin