Skip to content

Commit

Permalink
Merge pull request #107 from TomHAnderson/hotfix/uniqid-prefix
Browse files Browse the repository at this point in the history
The GraphQL schema requires names to start with a letter so prefix un…
  • Loading branch information
TomHAnderson authored Jan 24, 2023
2 parents c007765 + ecacb27 commit 649e50e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Type/PageInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class PageInfo extends ObjectType
public function __construct()
{
$configuration = [
'name' => uniqid(),
'name' => 'PageInfo_' . uniqid(), // must start with a letter
'description' => 'Page information',
'fields' => [
'startCursor' => Type::nonNull(Type::string()),
Expand Down
2 changes: 1 addition & 1 deletion src/Type/Pagination.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Pagination extends InputObjectType
public function __construct()
{
$configuration = [
'name' => uniqid(),
'name' => 'Pagination_' . uniqid(), // must start with a letter
'description' => 'Pagination fields for the GraphQL Complete Connection Model',
'fields' => [
'first' => [
Expand Down

0 comments on commit 649e50e

Please sign in to comment.