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

Add totalCount to connections fields

    XMLWordPrintable

Details

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: High High
    • None
    • 2.5.1
    • Platform > GraphQL
    • None

    Description

      Connections should expose a totalCount field, in order to know how many elements there are in total.

      It is already supported, and needs to be added as a connectionProperties entry:

      DomainContentByIdentifierConnection:
          type: relay-connection
          config:
              connectionFields:
                  totalCount:
                      type: Int
      

      However, this doesn't work for some reason (might be a bug in the package). Adding it to each connection type, using the generator, would work, but requires that support for connectionFields is added to the generator API.

      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: