Fields starting with int throw error if not renamed.

Created on 16 December 2023, about 1 year ago
Updated 6 January 2024, 12 months ago

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.

Feature request
Status

Fixed

Version

2.1

Component

Code

Created by

🇦🇺Australia almunnings Melbourne, 🇦🇺

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024