Comments (2)
I haven't looked in depth at graphql-spqr
but I believe the biggest difference is in the way the schemas are generated - graphql-spqr
relies on explicit annotations and manual registration of the operations to build a schema whereas graphql-kotlin
relies on Kotlin reflections to generate the schema directly from the code. While graphql-kotlin
also ships with some annotations they are optional and only used to enhance the schema with additional information that cannot be directly derived from Kotlin reflections.
Take a look at our example project to see how it could be integrated with Spring Boot.
from graphql-kotlin.
We are taking a "resolver first" approach and taking advantage of the reflection Kotlin has. You could potentially convert an existing Kotlin Spring Boot REST API code base into GraphQL without changing the logic or models with our library. I would advise against that though as REST models don't always translate to the best GraphQL schema.
I'm going to mark as closed/answered but please ask any other questions you might have as this will be searchable by others in the future!
from graphql-kotlin.
Related Issues (20)
- GraphQLIgnore annotation not respected when running GraalVM native image
- Spring Boot 3.1.6 health endpoint latency is very high when other query is running. HOT 10
- Unable to perform upgrade as it is not requested by the client: request should have Upgrade and Connection headers filled properly HOT 1
- [ktor server] Ability to specify custom GraphQL server
- GraphQL client gradle plugin fails to find `compileDebugKotlin` task.
- Make `src/main/resources` configurable for GraphQL clients HOT 1
- Spring WebFlux: How to autowire a service/component in a CustomDirective behavior?
- ControllerAdvice and ModelAttribute
- [generator] support directives using input object args
- GraphQL Ktor plugin swallows context exceptions. HOT 3
- Ktor: Flow/Subscription websocket stops working (Ping Timeout)
- Why do I get this error when I start the application HOT 2
- No code generation occurs, no logs explaining why HOT 9
- feat: allow classes corresponding to SDL to be decoupled from implementation
- Unable to retrieve federated types with apollo federation v1 HOT 1
- Add plugin configuration option to allow generating test client files into testFixtures sources root
- @ShareableDirective causes schema generation error when applied to class used as both input and output
- FederatedSchemaValidator rejects nested union type field set HOT 1
- Union Annotations Do Not Play Well with @GraphQLDescription and @Deprecated
- FunctionDataFetcher: does not handle `Error` descendant `Throwables` in `runBlockingFunction` in conjunction with GraphQL Java `graphql/execution/ExecutionStrategy.java`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphql-kotlin.