1 | package edu.ucsb.cs156.frontiers.config; | |
2 | ||
3 | import org.springframework.context.annotation.Bean; | |
4 | import org.springframework.context.annotation.Configuration; | |
5 | import org.springframework.graphql.client.HttpSyncGraphQlClient; | |
6 | import org.springframework.web.client.RestClient; | |
7 | ||
8 | @Configuration | |
9 | public class GithubGraphQLClientConfig { | |
10 | ||
11 | @Bean | |
12 | public HttpSyncGraphQlClient graphQlClient() { | |
13 | RestClient restClient = RestClient.create("https://api.github.com/graphql"); | |
14 | HttpSyncGraphQlClient graphQlClient = HttpSyncGraphQlClient.builder(restClient).build(); | |
15 |
1
1. graphQlClient : replaced return value with null for edu/ucsb/cs156/frontiers/config/GithubGraphQLClientConfig::graphQlClient → KILLED |
return graphQlClient; |
16 | } | |
17 | } | |
Mutations | ||
15 |
1.1 |