You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ProcessGraphQLConfig.php
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ public function getDefaults()
28
28
'httpUrl',
29
29
'description',
30
30
],
31
-
'fullWidthGraphiql' => false,
31
+
'fullWidthGraphiQL' => false,
32
32
);
33
33
}
34
34
@@ -37,6 +37,7 @@ public static function isLegalTemplateName($name)
37
37
if (!$name) returnfalse;
38
38
if (preg_match('/^[_A-Za-z][-_0-9A-Za-z]*$/', $name) !== 1) returnfalse; // the GraphQL naming requirement
39
39
if (strpos($name, '__') === 0) returnfalse; // the names with `__` prefix are reserved by GraphQL
40
+
if (strpos($name, '--') === 0) returnfalse; // as we change the `-` symbols to `_` for field names the `--` becomes `__` and it also reserved by GraphQL
40
41
if (in_array($name, Settings::getReservedWords())) returnfalse; // some words that used now and might be for future
0 commit comments