Skip to content

Commit db61369

Browse files
committed
- Update name of one-to-one connection interface to SingularConnection
1 parent ab41f9a commit db61369

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Type/InterfaceType/ConnectionInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static function register_type( TypeRegistry $type_registry ) {
4343
]
4444
);
4545

46-
register_graphql_interface_type( 'SingleNodeConnectionEdge', [
46+
register_graphql_interface_type( 'SingularConnection', [
4747
'interfaces' => [ 'Edge' ],
4848
'description' => __( 'A singular connection from one Node to another, with support for relational data on the "edge" of the connection.', 'wp-graphql' ),
4949
'fields' => [

src/Type/WPConnectionType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ protected function register_connection_input() {
275275
*/
276276
protected function register_one_to_one_connection_edge_type() {
277277

278-
$interfaces = [ 'SingleNodeConnectionEdge', 'Edge' ];
278+
$interfaces = [ 'SingularConnection', 'Edge' ];
279279
$interfaces = $this->get_edge_interfaces( $interfaces );
280280

281281
$this->type_registry->register_object_type(

0 commit comments

Comments
 (0)