Skip to content
This repository was archived by the owner on Feb 10, 2019. It is now read-only.

Commit 075577b

Browse files
committed
Fix no config field in edge type
1 parent 2914738 commit 075577b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Folklore/GraphQL/Relay/Relay.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function connectionField($config = [])
2424

2525
public function connectionFieldFromEdgeType($edgeType, $config = [])
2626
{
27-
$typeName = array_get($edgeType->config, 'name');
27+
$typeName = $edgeType->name ? $edgeType->name : get_class($edgeType);
2828
$connectionName = array_get($config, 'connectionTypeName', str_plural($typeName).'Connection');
2929

3030
$connectionType = new ConnectionType([

0 commit comments

Comments
 (0)