Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-32327

Make "id" a reserved word for fields definitions

Details

    Description

      Change

      Make "id" a word that can not be used as a field definition identifier.

      Reason

      If a content type includes a field definition with the identifier id, the generated GraphQL schema will be invalid. All types generated from content types will include a built-in id field that is used by the apollo framework/standard, with the built-in type "ID". A custom field definition with the same identifier will conflict with it and prevent the application from compiling.

      Furthermore, all content types and items already have a property named "id", and calling a field that way would be confusing, and should never be strictly necessary.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bertrand.dunogier@ibexa.co Bertrand Dunogier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: