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
I'm implementing wp comments with wp-graphql and they did work perfectly until I installed wp-graphql-woocommerce, what is not returning is commentedOn value it always returns null.
To Reproduce
Execude Query:
query GetForumBySlug($slug: String!) {
forumBy(slug: $slug) {
...ForumSingleItem
__typename
}
}
fragment ForumSingleItem on Forum {
id
databaseId
title
date
content
slug
author {
node {
name
__typename
}
__typename
}
comments(where: {parent: null, order: ASC, orderby: COMMENT_DATE}) {
nodes {
...Comment
}
}
}
fragment Comment on Comment {
id
content
databaseId
date
approved
author {
node {
databaseId
__typename
}
}
commentedOn {
node {
id
databaseId
slug
... on Forum {
id
databaseId
slug
forumId
}
... on Lesson {
id
databaseId
slug
lessonId
}
... on Course {
id
databaseId
slug
courseId
}
}
}
commentOptions {
author
__typename
}
}
Expected behavior
This is how it supposed to return data
{
"data": {
"forumBy": {
"id": "cG9zdDoyODc=",
"databaseId": 287,
"title": "qysh me ba pagesen e rrogave?",
"date": "2021-06-02T00:10:52",
"content": "
Describe the bug
I'm implementing wp comments with wp-graphql and they did work perfectly until I installed wp-graphql-woocommerce, what is not returning is commentedOn value it always returns null.
To Reproduce
Execude Query:
Expected behavior
This is how it supposed to return data
Screenshots
How it is supposed to work (without wp-graphql-woocomerce plugin activated)
How it is working (with wp-graphql-woocomerce plugin activated)
Plugin Versions
@jasonbahl @renatonascalves @jacobarriola @kidunot89
The text was updated successfully, but these errors were encountered: