Schema Documentation
NodeWithComments
Description
A node that can have comments associated with it
Fields
Field Name | Description |
---|---|
commentCount - Int | The number of comments. Even though WPGraphQL denotes this field as an integer, in WordPress this field should be saved as a numeric string for compatibility. |
commentStatus - String | Whether the comments are open or closed for this particular post. |
id - ID! | The globally unique ID for the object |
Example
{"commentCount":123,"commentStatus":"abc123","id":4}