Tag: Spring Boot
-
Injected dependencies of Controller are sometimes null when using @SchemaMapping
1 The bounty expires in 5 days. Answers to this question are eligible for a +100 reputation bounty. Benoit Cuvelier wants to draw more attention to this question. I have a problem on a SpringBoot (3.2.0) application that uses GraphQL with spring-boot-starter-graphql. I have several annotated controllers that contain some @SchemaMapping, @QueryMapping and @MutationMapping. For…
-
How can spring-boot application easily get data from external GraphQL service?
1 Background My spring-boot-3 application need to get data from external GraphQL API. There I can/need fetch data by 4 different queries. I want to find some generic GraphQL Client with default GraphQL exceptions handling and default response conversion to objects. Question Is there any simple way to call GraphQL API? Any dependency or client…
-
GraphQL Client with spring boot
0 I have a spring boot GraphQL API and I want to consume it in another spring boot app using GraphQL Client. I am using spring boot version 3. when I execute mutate which works as data is added to the database, I am not able to figure out how to convert the received response…
-
Support for multiple paths pointing to different graphql schema
0 I have two graphql schemas that we can say one as admin and one as internal and i need to map each with a separate graphql endpoint as:- Schema – admin.graphqls, internal.graphqls /graphql/admin and /graphql/internal however the exposed configuration property we have in spring-boot-starter-graphql is a string so possible only one endpoint can be…
-
Reconfigure dataloaders when migrating from graphql-java-kickstart to spring-graphql
0 I’m in the process of migrating a GraphQl-java-kickstart project to Spring-GraphQl, as Spring-GraphQl was not available at the time when GraphQL was implemented in the project. The main reason for migrating is that the auto-configuration and annotation based approach offered by Spring may help remove much of the complex boilerplate code in the initial…
-
Spring GraphQL return NULL
1 I want to create my own website in the form of a blog using Spring Boot and GraphQL API, but I don’t understand how to connect the database to GraphQL. When making a request through /graphiql, it returns NULL. I would appreciate any help and advice. I am using PHPMAdmin as database interface. Leave…
-
Spring Boot GraphQLQueryResolver won’t run, runs on test project
1 So I’m new into GraphQL and i got stuff running by manually setup a schemaparser and datafetchers. But I want to refactor and try out by implementing GraphQLQueryResolver to a class and controll my queries from there. I get it to work by making a new project, but with the same dependencies and should…
-
SpringBoot GraphQL Not exposing /graphql endpoint
2 Currently trying to setup SpringBoot and GraphQL but whenever I run the application I don’t seem to get the /graphql endpoint exposed, nor does the graphiql UI get exposed when I set it to enabled in the application.yml file. I’ve also tried setting the endpoint manually in the properties but that also isn’t exposed.…
-
How to resolve fetched fields graphql in spring without checking each field?
0 I’m learning GraphQL and decided to develop a small application using GraphQL, Spring Boot 3.1.3, Java 20, and the spring-boot-starter-graphql library. One of the main features of GraphQL is the ability to specify which fields are needed. I found a simple solution to implement this in Java using a field fetcher by checking if…
-
How to send a file in the request body for GraphQL API and Spring-boot application using postman?
0 I am using graphQL for my APIs and now I need to receive a file in the request as a multipart file, so how to send that file using Postman to my controller? @Data public class FileDTO { private MultipartFile smsFile; } @Controller public class SMSBulkController { @Autowired ParsingService parsingService; @MutationMapping public ApiResponse<String> uploadFile(@Argument…