Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only

GraphQL Query to access content-service

  • 1.  GraphQL Query to access content-service

    Posted Fri October 13, 2023 11:08 AM
    Edited by Andres Parada Tue November 21, 2023 05:55 PM

    Good Morning,

    I am trying to use GraphQL Content-service to pull some information of data from filenet. is there any document with examples 

    Below is a sample query but its not returning all the values stored in DB, where can we find all the elements its returned by the query?

    Note: I am getting everything except "XYZ" but i know we have this element, how can see all retured ?

    {
      documents(repositoryIdentifier: "XXX", from: "Document", where: "[DateCreated] > 20180815T070000Z AND [IsCurrentVersion] = True", orderBy: "DocumentTitle", options: "COUNT_LIMIT 1", pageSize: 501) {
        documents {
          dateCreated
          className
          id
          name
          contentSize
          majorVersionNumber
          minorVersionNumber
          mimeType
          properties(includes: ["Creator", "ABC", "XYZ", "DDD", "DocumentTitle", "ContentSize"]) {
            id
            label
            value
            ... on ObjectProperty {
              objectValue {
                className
                ... on CmAbstractPersistable {
                  creator
                  dateCreated
                  properties(includes: ["XYZ"]) {
                    id
                    label
                    type
                    cardinality
                    value
                  }
                }
              }
            }
          }
        }
        pageInfo {
          token
        }
      }
    }

    -Suresh