Tag: Spring Boot
-
Is GraphQL API suitable for supermarket POS(Point-Of-Sales) application?
0 I am developing a smart POS application that serves as an integrated software solution that facilitates efficient and modern point-of-sale operations for supermarkets. This system has the following functionalities. Sales processing and transaction management Inventory management Employee management Report and Analytics E-commerce integration Multi-Store support Customer management I chose ReactJS for the front-end, Springboot…
-
Using netflix-dgs with WebFlux
0 This might be a dumb questions, with me being a novice getting starting with the whole reactive programming methodology. Task: But I’m working on developing a Spring Boot Netflix DGS based GraphQL API Implementation: So I am using the standard netflix platform dgs libraries and scalars and all that, and in addition i just…
-
SpringBoot not exposing GraphQL
0 I have a multi-module project where one of them is the GraphQL module the Runnable File is in a different module with a working RestController the GraphQLController is not exposed. I have tried to move the application.properties to the runnable module didn’t work, tried to move the GraphQLController also didn’t work I even moved…
-
Microservice Communication for Graphql APIs
1 Problem Statement : I have a GraphQl query defined which is responsible for fetching few details from the database. This graphql schema let’s say is defined in microservice-B . Now I want this garphql API to be called by an upstream microservice-A. microservice-A is actually the one which is actually called by our Clients(UI…
-
SpringBoot graphQL getting Invalid Syntax for nested Object
0 I am using GraphQL in my SpringBoot app. While the CRUD operations are running for single objects, I am facing the issue of Invalid Syntax for nested objects. Please find the code below and suggest. graphql type Book { isn: Int title: String author: String publishedDate: String publisher: Publisher! } input PublisherInput { pId…
-
Dynamically restrict fields in graphql spring methods returning the same object type
0 Would it be possible to somehow restrict some fields from being returned in a graph ql method, bur return them in another considering they both return the same object ? For example in the following methods i would like to restrict the field UserDto.birthday from being able to be queried in the second method.…
-
Use introspection query without authentication in graphql-spring-boot-starter
5 Using the graphql-spring-boot-starter library https://github.com/graphql-java-kickstart/graphql-spring-boot, is it possible to secure all requests but allow only the graphql introspection query with authentication? The project has enabled Spring security to use OAuth2 so every request is secured. Thanks for any hint or help. spring-boot spring-security graphql graphql-java Share Improve this question Follow asked Nov 13, 2019…
-
Spring Boot Graphql: How can I pre-process an individual query/mutation before it runs the controller method?
0 I want to add an annotation to my controller methods that is used to check if the user can perform an action or access a piece of data before the controller method is called. I want to be able to check each individual query/mutation, rather than each http request which may come with multiple…
-
GraphQL error : Method not allowed error for GraphQL requests with Spring 3.1.1
-1 I have upgraded spring boot to 3.1.1 and I am getting 405 method not allowed for graphql call. I tried all the known options. pom.xml <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-graphql</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> class @Controller public class DemoGraphQLResolver { @QueryMapping(name = "phoneNumber") public List<Party> phoneNumber(@Argument String phoneNumber) { return phoneNumber; } } I have .graphqls…