This repository consist the GraphQL Client code for performing Operations on GraphQL Server
- Execute mvn compile in the root of the repository to generate the Models from the Corresponding Schema.
- The corresponding Models will be generated in ${basedir}/target/generated-sources/apollo/service/coldfusion/graphql folder.
- Schema can be downloaded in a local file by filling the entries in the following target in pom.xml
`
true
${HASURA-ENDPOINT} $ {basedir}/src/main/graphql/service/schema.json 10 10 10 false false false - In case the GraphQL Server needs authentication, the same can be done by specifying key-value in the headers section. Value can be read from Environment Variables.
<headers> <x-hasura-admin-secret>${HASURA-SECRET}</x-hasura-admin-secret> </headers>
- Make sure to initialize the value of HASURA-SECRET in the Environment variables before running maven command. `
- Run mvn compile to compile the sources and generate models.
- Run mvn clean install:
- Build the project
- Download the schema to the local file specfied in the schemaFile attribute of introspection root attribute
- Run the Unit tests etc