-
-
Notifications
You must be signed in to change notification settings - Fork 141
Description
versions:
WP 5.8.1
Woo 5.8.0
Graphql 1.6.5
WPGraphQL WooCommerce 0.10.4
Advanced Custom Fields PRO 5.10.2
WPGraphQL for Advanced Custom Fields 0.5.3
Steps:
- I'm having a CPT - Auctions
- Auction has an ACF Relationship field with Products
- when I'm running the following query - I'm receiving an error
QUERY:
query GET_AUCTIONS {
auctions {
nodes {
title
acf_auctions {
auctionProduct {
... on SimpleProduct {
id
name
databaseId
commentCount
}
}
}
}
}
}
ERROR:
{
"errors": [
{
"message": "Internal server error",
"extensions": {
"category": "internal"
},
"locations": [
{
"line": 6,
"column": 9
}
],
"path": [
"auctions",
"nodes",
1,
"acf_auctions",
"auctionProduct",
0
]
}
],
"data": {
"auctions": {
"nodes": [
{
"title": "Auction 2",
"acf_auctions": {
"auctionProduct": null
}
},
{
"title": "Auction 1",
"acf_auctions": {
"auctionProduct": [
null
]
}
}
]
}
},
"extensions": {
"debug": [
{
"type": "DEBUG_LOGS_INACTIVE",
"message": "GraphQL Debug logging is not active. To see debug logs, GRAPHQL_DEBUG must be enabled."
}
]
}
}