Skip to content

ashudeep-sharma/graphql-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

graphql-client

This repository consist the GraphQL Client code for performing Operations on GraphQL Server

Instructions to Build The Code

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages