You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Hi guys, thanks for all the work you have done here. I'm just starting to use this plugin for a new project and I'm getting Internal server error as response to simple orders query.
To Reproduce
Start a wordpress instance using docker with the command docker compose up -d. This is the docker-compose.yml:
After docker container starts visit http://localhost:8001/ and initialize wordpress. Install most recent version of plugins (see plugins versions section), initialize commerce, add products (I used the sample data from wp-content/plugins/woocommerce/sample-data/sample_products.csv) and a payment method (I used de default Cash on delivery), make an order, try to query to retrieve said order, see error. Is this a regression or maybe I'm missing a configuration step?
This is the internal server error with orders
I'm not able to retrieve a single order neither
Expected behavior
queries should return the orders data similar to rest api
Plugin Versions
WordPress 6.1.1
The text was updated successfully, but these errors were encountered:
@wildcant the orders query is restricted to admin/users with shop manager caps only for security measures. The recommend way to retrieve user orders is by using the orders connection under the Customer type using the customer query.
query {
customer {
orders {
nodes {
id
}
}
}
}
Note: By not providing params to the customer you tell WooGraphQL to return the Customer data for the current session user. To learn more handling the user session see this
Describe the bug
Hi guys, thanks for all the work you have done here. I'm just starting to use this plugin for a new project and I'm getting
Internal server error
as response to simpleorders
query.To Reproduce
Start a wordpress instance using docker with the command
docker compose up -d
. This is thedocker-compose.yml
:After docker container starts visit
http://localhost:8001/
and initialize wordpress. Install most recent version of plugins (see plugins versions section), initialize commerce, add products (I used the sample data fromwp-content/plugins/woocommerce/sample-data/sample_products.csv
) and a payment method (I used de defaultCash on delivery
), make an order, try to query to retrieve said order, see error. Is this a regression or maybe I'm missing a configuration step?Expected behavior
queries should return the orders data similar to rest api
Plugin Versions
WordPress 6.1.1
The text was updated successfully, but these errors were encountered: