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
A request like that: query GetOrders($customerId: Int!) { customer(customerId: $customerId) { orders { nodes { id databaseId date status total lineItems { nodes { productId quantity total } } billing { firstName lastName address1 city state postcode country } shipping { firstName lastName address1 address2 city state postcode country } } } } }
starts returning an empty array: { "data": { "customer": { "orders": { "nodes": [] } } }, "extensions": { "debug": [ { "type": "DEBUG_LOGS_INACTIVE", "message": "GraphQL Debug logging is not active. To see debug logs, GRAPHQL_DEBUG must be enabled." } ] } }
instead of orders if you update the Woocommerce plugin to version 9.6.0 and above. To authorize a request as a Bearer Token, I use the latest version of the WPGraphQL JWT Authentication plugin (0.7.0).
Describe the bug
A request like that:
query GetOrders($customerId: Int!) { customer(customerId: $customerId) { orders { nodes { id databaseId date status total lineItems { nodes { productId quantity total } } billing { firstName lastName address1 city state postcode country } shipping { firstName lastName address1 address2 city state postcode country } } } } }
starts returning an empty array:
{ "data": { "customer": { "orders": { "nodes": [] } } }, "extensions": { "debug": [ { "type": "DEBUG_LOGS_INACTIVE", "message": "GraphQL Debug logging is not active. To see debug logs, GRAPHQL_DEBUG must be enabled." } ] } }
instead of orders if you update the Woocommerce plugin to version 9.6.0 and above. To authorize a request as a Bearer Token, I use the latest version of the WPGraphQL JWT Authentication plugin (0.7.0).
To Reproduce
Steps to reproduce the behavior:
mutation LoginUser { login( input: { username: "[email protected]", password: "12345" } ) { authToken refreshToken customer { id databaseId firstName lastName email username billing { phone address1 address2 city postcode state lastName firstName email country company address1 } } } }
Expected behavior
Should return an array of orders like that:
{ "data": { "customer": { "orders": { "nodes": [ { "id": "b3JkZXI6MjUyODg=", "databaseId": 25288, "date": "2025-02-18T11:16:27+00:00", "status": "PENDING", "total": "1000,00 ₸", "lineItems": { "nodes": [ { "productId": null, "quantity": 2, "total": "1000" } ] }, "billing": { "firstName": "User", "lastName": null, "address1": "Street example, 1", "city": "City example", "state": null, "postcode": null, "country": null }, "shipping": { "firstName": "User", "lastName": null, "address1": "Street example, 1", "address2": null, "city": "City example", "state": null, "postcode": null, "country": null } },
Desktop (please complete the following information):
Plugin Versions
The text was updated successfully, but these errors were encountered: