{"repo":"leangen/graphql-spqr","free":true,"listed":false,"github":"https://github.com/leangen/graphql-spqr","clone":"git clone https://github.com/leangen/graphql-spqr.git","description":"Build a GraphQL service in seconds","language":"Java","stars":1103,"topics":["graphql","graphql-server","java","graphql-api"],"license":"Apache-2.0","category":"api-integrations-sdks","readme_excerpt":"GraphQL SPQR GraphQL SPQR (GraphQL Schema Publisher & Query Resolver, pronounced like speaker ) is a simple-to-use library for rapid development of GraphQL APIs in Java. Intro Code-first approach Still schema-first Installation Hello world Spring Boot Starter Full example Full tutorial Known issues Kotlin OpenJDK Asking questions Intro GraphQL SPQR aims to make it dead simple to add a GraphQL API to any Java project. It works by dynamically generating a GraphQL schema from Java code. Requires minimal setup ( 3 lines of code) Deeply configurable and extensible (not opinionated) Allows rapid prototyping and iteration (no boilerplate) Easily used in legacy projects with no changes to the existing code base Has very few dependencies Code-first approach When developing GraphQL-enabled applications it is common to define the schema first and hook up the business logic later. This is known as the schema-first style. While it has its advantages, in strongly and statically typed languages, like Java, it leads to a lot of duplication. For example, a schema definition of a simple GraphQL type could like this: and, commonly, a corresponding Java type would exist in the system, similar to the following: Both of these blocks contain the exact same information. Worse yet, changing one requires an immediate change to the other. This makes refactoring risky and cumbersome, and the compiler can not help. On the other hand, if you’re trying to introduce a GraphQL API into an existing project, w","default_branch":null,"files":null,"tree":[],"storefront":"/r/leangen","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/leangen/graphql-spqr/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}