Tag: Spring Boot
-
GraphQL (GroupBy fieldname) in SpringBoot and MySQL
0 I have just started to learn GraphQL, I am using GraphQL with SpringBoot and MySQL. I have a table in MySQL, "Employee" which looks as follows ID NAME EXPERIENCE DEPARTMENT_NAME 1 Alex 7 Sales 2 Josh 6 Marketing 3 Hans 3 Sales 4 Max 8 Marketing and ofcourse i have POJO in SpringBoot class…
-
Java/API Engineer — REMOTE 100% — Contract on W2 – Siri Infosolutions Inc – Remote
Siri Infosolutions Inc Remote Contract: W2, 6+ Month(s) Skills Spring Boot Java Docker API Azure Kubernetes GraphQL Job Description Contract on W2 Java/API Engineer 6+ Months Contract REMOTE Must Haves: Java Spring Boot GraphQL ideal, microservices must SQL (data access and performant queries) Kubernetes, Docker API testing CI/CD Cloud experience https://www.dice.com/job-detail/ecc98545-85a0-462f-ac74-86fd5f404a0d
-
Camunda 7 graphql tomcat war deployment problem
0 I have checked out the code from https://github.com/camunda-community-hub/camunda-platform-7-graphql this. I am able to run it as a spring boot application. All the services of camunda along with camunda rest apis and graphql apis are working perfectly fine. However we have a specific need of deploying the camunda as a war file on tomcat 8.…
-
Can’t autowire GraphQlTester
1 My current dependency set-up for demo api: dependencies { implementation ‘org.springframework.boot:spring-boot-starter-graphql:2.7.2-SNAPSHOT’ implementation ‘org.springframework.boot:spring-boot-starter-web’ testImplementation ‘org.springframework.boot:spring-boot-starter-test:2.7.2-SNAPSHOT’ testImplementation ‘org.springframework:spring-webflux’ testImplementation ‘org.springframework.graphql:spring-graphql-test:1.0.0’ compileOnly ‘org.projectlombok:lombok’ annotationProcessor ‘org.projectlombok:lombok’ } Test class: import com.example.demo.dao.ProfileDao; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.graphql.GraphQlTest; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.mock.mockito.MockBean; import org.springframework.graphql.test.tester.GraphQlTester; import static org.springframework.test.util.AssertionErrors.assertNotNull; @GraphQlTest //@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT) class DemoApplicationTests { @Autowired GraphQlTester graphQlTester; @MockBean…
-
Avoiding unnecessary database calls when converting JPA Entity to DTO in Spring Boot with GraphQL
0 I am developing an application using Spring Boot and GraphQL. When returning an Entity directly from GraphQL, data fetchers automatically handle the queries, fetching only the tables requested in the GraphQL query. For instance: query Workspace { workspace { id } } This will only query the workspace table. query Workspace { workspace {…
-
Netflix DGS configuration dgs.graphql.graphiql.enabled=true is not working
0 Netflix DGS configuration dgs.graphql.graphiql.enabled=true is not working. I have also added this config – dgs.graphql.graphiql.path=/graphiql I have a spring boot application in maven and I have implemented my graphQL APIs using Netflix DGS. APIs are working fine using postman but when I try to enable graphiql by hitting /graphiql end point, it gives me…
-
How to skip validation rules in GraphQL Spring Boot application
0 I have a SpringBoot + GraphQL application. I am trying to upgrade to the latest version (graphql-spring-boot-starter 11.1.0 -> 13.0.1) which changes graphql-java from 16.2 -> 19.2. I have schema that looks like enum Type { TYPE1 TYPE2 } interface Generic { name: String type: Type } type Type1 extends Generic { name: String…
-
Custom GraphQL exceptions
0 I’m trying to create a custom exception when GraphQL throws its owns. The default GraphQL exception response I got is (except for the fillings): { "errors": [ { "message": "Validation error of type WrongType: argument ‘inputLocals.localId’ with value ‘IntValue{value=7777800}’ is not a valid ‘Int’ – Expected value to be in the Integer range but…
-
Graphiql not working due of security – Spring for GraphQL
0 I’m trying to use graphiql UI but due of Spring Security, I receive 401. What’s the way to keep /graphql endpoint secured but let /graphiql request to graphql endpoint? I’m on Spring Boot 3.1.4 and Spring For Graphql 1.2.3 If I permitall /graphql it works but I loss security. I Tried also to put…
-
How to handle security (authn/authz) with DGS Subscriptions and spring security?
0 I’m mirroring a question asked directly on GitHub here. I’m up to the point where if I authorize("/subscriptions",permitAll) while configuring my SecurityWebFilterChain then I can successfully use my subscription queries. However, that removes all the security. I would have liked to do: authorize("/subscriptions",hasAuthority("access")) Anyway, now I need to make sur that the user is…