Skip to content

arafat-java/graphql-dgs-getting-started

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphql-dgs-getting-started

Sample HelloWorld GraphQL App using Netflix DGS

Getting Started

  1. Run to install dependencies: mvn install
  2. Run the DgsGraphqlWithSpringbootApplication.java
    • Server starts at 8181 port
  3. GraphiQL (GraphQL IDE) accessible at http://localhost:8181/graphiql
  4. Sample curl commands as follows
    • Sample 1

      curl --location 'http://localhost:8181/graphql' \ --header 'Content-Type: application/json' \ --data '{"query":"query {\n helloWorld \n}","variables":{}}'

    • Sample 2

      curl --location 'http://localhost:8181/graphql' \ --header 'Content-Type: application/json' \ --data '{"query":"query shows {\n shows(titleFilter: \"The\") {\n title\n releaseYear\n }\n}","variables":{}}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages