Tag: spring
-
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…
-
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…
-
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…
-
How to implement union in spring-graphql. I get error that I’m requesting object but its rather a ‘graphql.schema.GraohQLUnionType’
0 I wanted to create a union named Tables, that holds all the other tables and the user can request the table accordingly. I get the error: You have asked for named object type ‘Tables’, but it’s not an object type but rather a ‘graphql.schema.GraohQLUnionType’ Here is my graphql schema: type Query{ getData: [Tables] }…
-
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…
-
GraphQL with Spring Boot Security returning 403
0 I have been trying to implement GraphAPI methods authorization. But, always get 403. Environment: JDK 17 Spring Boot 3.1.5 MongoDB Spring Security Graph QL OS: MacOS JDK 17 My application file looks like: import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration; import org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration; import org.springframework.context.annotation.EnableAspectJAutoProxy; @SpringBootApplication(exclude = {SecurityAutoConfiguration.class, UserDetailsServiceAutoConfiguration.class}) @EnableAspectJAutoProxy public class JoblobApplication { public static…
-
Spring cloud gateway: Websockets on the same URL as HTTP(S)
1 I’m using Spring Cloud Gateway with a routing configuration like this: spring: cloud: gateway: routes: – id: http uri: https://kubernetes-ingres-controller In other words, I’m sending all paths onwards to somewhere else, which happens to be a K8s ingress controller. Spring adds some headers and handles the translation of session cookies into bearer tokens. I’m…
-
Spring Boot Starter GraphQL LazyInitializationException
0 I am currently implementing GraphQL into a system and am using Spring Boot 3.0.5 together with org.springframework.boot:spring-boot-starter-graphql to implement GraphQL schemas and queries. However there is a query that has issues. The relevant JPA entities: @Entity public class Video { @Id @Column(length = 24, nullable = false) private String videoId; @ManyToMany(mappedBy = "video") private…
-
Java Developer(W2 Role) – Cyber Sphere LLC – Remote
Cyber Sphere LLC Remote Depends on Experience Contract: W2, Independent, 12 Month(s) No Travel Required Skills JAVA SPRING KAFKA AWS AIRFLOW GraphQL Job Description Java DeveloperRemoteW2 MUST HAVES – JAVA – SPRING – KAFKA – AWS – AIRFLOW **GraphQL Design, develop, and maintain Java Spring applications, mainly GraphQL queries, mutations, and subscriptions,…