-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1766 from Netflix/spring-graphql-refactored
Integrate DGS Framework with Spring-GraphQL . The DGS framework will now use SpringGraphQL's execution engine , and transport handlers for graphql requests. This feature introduces a new starter for users com.netflix.graphql.dgs:graphql-dgs-spring-graphql-starter for opting in to the Spring-GraphQL integration. We have also added a new module for the autoconfiguration and integration points specific to Spring GraphQL and a corresponding example app that demonstrates functionality for existing DGS features and some Spring GraphQL features as well. --------- Co-authored-by: Paul Bakker<[email protected]> Co-authored-by: Kavitha Srinivasan <[email protected]>
- Loading branch information
Showing
109 changed files
with
32,049 additions
and
306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...c/main/kotlin/com/netflix/graphql/dgs/pagination/DgsPaginationEnvironmentPostProcessor.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright 2024 Netflix, Inc. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.netflix.graphql.dgs.pagination | ||
|
||
import org.springframework.boot.SpringApplication | ||
import org.springframework.boot.env.EnvironmentPostProcessor | ||
import org.springframework.core.env.ConfigurableEnvironment | ||
import org.springframework.core.env.MapPropertySource | ||
|
||
class DgsPaginationEnvironmentPostProcessor : EnvironmentPostProcessor { | ||
override fun postProcessEnvironment(environment: ConfigurableEnvironment, application: SpringApplication) { | ||
val properties = mutableMapOf<String, Any>() | ||
properties["dgs.springgraphql.pagination.enabled"] = false | ||
environment.propertySources.addLast( | ||
MapPropertySource( | ||
"dgs-pagination-defaults", | ||
properties | ||
) | ||
) | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
graphql-dgs-pagination/src/main/resources/META-INF/spring.factories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.springframework.boot.env.EnvironmentPostProcessor=com.netflix.graphql.dgs.pagination.DgsPaginationEnvironmentPostProcessor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.