Questions tagged [spring-graphql]
Spring for GraphQL provides transport and an annotation model for exposing GraphQL APIs. It is supported with a dedicated Starter as of Spring Boot 2.7.0
spring-graphql
129
questions
0
votes
2
answers
34
views
Is it possible to expose multiple GraphQL endpoints in one spring boot application?
Does Spring support exposing multiple GraphQL endpoints and having separate schemas for those endpoints?
I found nothing about it in the documentation. I know that Spring supports multiple schemas, ...
1
vote
0
answers
25
views
How to properly perform dynamic filtering using graphql-java?
Assume that using the schema below, both the teams query and the members collection (from the Team type) are bound to data served by different services using BatchLoaders. Also, let's assume that ...
1
vote
0
answers
26
views
Error 400 [no body] when trying to send a GraphQL Request with HttpSyncGraphQlClient in Spring Boot 3.3.1
I have a Java 21 Spring Boot 3.3.1 using MVC application. I used to send GraphQL requests with RestClient and just built the GraphQL body manually. Since I am using MVC, I could not use the ...
-1
votes
1
answer
41
views
Spring GraphQL with Spring 5
I'm trying to create a java graphQL client for my app that will consume a graphql endpoint (example : https://countries.trevorblades.com/).
My app uses Spring framework 5 (it's not spring-boot app).
...
0
votes
0
answers
44
views
Spring Data Neo4j Graphql Integration: query with depth > 1 not working
I can not get SDN working with Graphql repositories. If there is a Node hierachy with depth > 1 the respective entities are not queried correctly as demonstrated here: https://github.com/NilsWild/...
0
votes
1
answer
21
views
Schema transformation per-request on Spring GraphQL
We are migrating from using the spring graphql kickstarter to the official Spring for GraphQL solution.
Something the kickstarter had was a Servlet that could be overridden to get the schema per ...
0
votes
1
answer
19
views
Accessing response headers in SyncGraphQlClientInterceptor
This question was originally asked on github issues. Posted here in hopes of getting an answer.
Please tell me is it possible to somehow get information about response headers in ...
1
vote
1
answer
34
views
Default strategy for discovering data fetchers in spring for graphql?
After reading the docs for Spring for GraphQL, I understand how to annotate methods and controllers to expose data fetchers for items in my schema. My question is.. do I need to do that for every ...
1
vote
1
answer
37
views
How to use Spring GraphQL in an existing server
I have an existing application running in a non-Spring application server. I'd like to integrate a GraphQL API into that application using spring-graphql. How would I go about that? My intention was ...
0
votes
1
answer
11
views
How to obtain a reference to the configured ExecutionGraphQlService
I have a spring-graphql project configured using Spring Boot using Spring MVC to handle GraphQL queries over HTTP. I also want to execute GraphQL queries on the server side. How would I get a ...
1
vote
1
answer
32
views
How to exclude a nullable field in Graphql response
I am developing a graphql service which return some response elements. In my graphql schema I have defined non-nullabale and few nullable fields. My expectation is if any nullable field is null as ...
0
votes
1
answer
22
views
Can I encode ID type as base64 with spring-graphql?
How can I encode the ID type as base64 in spring-graphql? note: I'm looking for a way to do it automatically for any field that the schema defines as ID, not writing this by hand in every controller ...
0
votes
1
answer
50
views
Is there a good way to BatchMapping or use Data Loaders in Spring GraphQL utilising non-exposed fields?
Consider the below minimal GQL schema:
type query {
appointments: [Appointment!]!
}
type Appointment {
id: ID!
job: Job!
}
type Company {
id: ID!
job: Job!
}
type Job {
id: ...
1
vote
1
answer
70
views
GraphQL Schema Error: Missing query Operation
I'm working on Spring boot GraphQL project and im encountering an error while defining my GraphQL schema. It states:
Caused by: graphql.schema.idl.errors.SchemaProblem: errors=[A schema MUST have a '...
0
votes
0
answers
37
views
How to do different operations besides equals with Spring GraphQL, Spring Data, and QueryDSL
I'm trying to understand how Spring GraphQL handles more complex QueryDSL queries internally but I am struggling to find good documentation or examples of use cases such as doing range queries or like ...