Skip to content

Commit

Permalink
Revert "chore: revert commentTypeNotIn schema change"
Browse files Browse the repository at this point in the history
This reverts commit 58f4a28.
  • Loading branch information
jasonbahl committed Apr 4, 2022
1 parent 58f4a28 commit d5f7b04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/Connection/Comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,13 @@ public static function get_connection_args() {
'description' => __( 'Include comments from a given array of comment types.', 'wp-graphql' ),
],
'commentTypeNotIn' => [
'type' => 'String',
'type' => [
'list_of' => 'String',
],
'description' => __( 'Exclude comments from a given array of comment types.', 'wp-graphql' ),
],
'userId' => [
'type' => 'ID',
'type' => 'Id',
'description' => __( 'Include comments for a specific user ID.', 'wp-graphql' ),
],
];
Expand Down
2 changes: 1 addition & 1 deletion tests/wpunit/CommentConnectionQueriesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public function testCommentConnectionWhereArgs() {
// test commentTypeNotIn
$actual = $this->commentsQuery( [
'where' => [
'commentTypeNotIn' => 'comment',
'commentTypeNotIn' => [ 'comment' ],
],
] );

Expand Down

0 comments on commit d5f7b04

Please sign in to comment.