diff --git a/wp-graphql-redirection.php b/wp-graphql-redirection.php index 28cb6c5..0921200 100755 --- a/wp-graphql-redirection.php +++ b/wp-graphql-redirection.php @@ -65,6 +65,7 @@ 'wp-graphql-redirection' ), 'fields' => [ + 'id' => ['type' => 'Int'], 'origin' => ['type' => 'String'], 'target' => ['type' => 'String'], 'type' => ['type' => 'String'], @@ -111,6 +112,7 @@ foreach ((array) $rows as $row) { $items[] = [ + 'id' => $row->id, 'origin' => $row->url, 'target' => $row->action_data, 'code' => absint($row->action_code),