Skip to content

A simple demo on using Spring boot + JPA + graphql

Notifications You must be signed in to change notification settings

bill-yan/profiledemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

profiledemo

A simple demo on using Spring boot + JPA + graphql

Run the demo

gradle :bootRun

then naviate your browser to:

http://localhost:9977/

you will see the graphiQL UI

Sample query

{
  listAllEnabledLocales {
    id
    name
    locale
  }
  listAllTimezones{
    id
    name
    
  }
 userById(id:1) {
  fullName
  jobTitle
  defaultLocale {
   locale
  }
  timezone {
   id
   name
  }
  emails {
   id
   email
   primaryEmail
  }
  phones {
   id
   number
   primaryPhone
  }
 }
}

Sample mutation

{
 createEmail(newEmail:
  {email:"abc@abc.com",
   notificationEnabled:true,
   user:{id:1}
  }
 ){
  id
  email
  primaryEmail
 }
}

About

A simple demo on using Spring boot + JPA + graphql

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published