Create a field: field_88_bananas
Enable field in GraphQL Compose, which defaults to: 88Bananas

GraphQL\Error\SyntaxError: Syntax Error: Expected Name, found Int "88" in GraphQL\Language\Parser->expect() (line 366 of /app/vendor/webonyx/graphql-php/src/Language/Parser.php).

This is currently easy enough to mitigate by changing the field name in the GraphQL Compose config.

Would be nice to make the rename required on enabling the field, if the field name starts with an int.

CommentFileSizeAuthor
#6 merged.jpg70.68 KBalmunnings
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

almunnings created an issue. See original summary.

almunnings’s picture

Status: Active » Needs review

  • almunnings committed 31778a37 on 2.1.x
    Issue #3409260 by almunnings: Fields starting with int throw error if...
almunnings’s picture

Version: 2.0.x-dev » 2.1.x-dev
almunnings’s picture

Status: Needs review » Fixed
StatusFileSize
new70.68 KB

Merged

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.