/alfresco-graphql

GraphQl endpoint for Alfresco

Primary LanguageJavaScript

GraphQL endpoint for Alfresco

This is an ACS project for Alfresco SDK 4.0, tested against ACS 6.2.0 community.

To know more about GraphQL : https://graphql.org/

Declare the following endpoints:

Interesting files:

Code coverage: 86% instructions, 76% branches.

Author

Made for fun and education by Adrien SAUVEZ, Alfresco expert @Smile company (https://www.smile.eu). Special thanks for Covid 19 for having forced me to stay at home and therefore give me time to work on this project..

Install

query {
  node {
    sitesHome {
      childByName(name: "swsdp") {
        title
        childByName(name: "documentLibrary") {
          childrenContains {
            nodeRef,
            name,
            title
          }
        }
      }
    }
  }
}

Can be integrated in an existing Alfresco by declaring:

<dependency>
	<groupId>fr.smile.alfresco.graphql</groupId>
	<artifactId>graphql</artifactId>
	<version>1.0-SNAPSHOT</version>
</dependency>

This was tested against a 6.2 version Community and Enterprise.

TODO