14 questions
0
votes
1
answer
157
views
Apollo federation with graphql java kickstart giving runtime error while executing query
I have couple of existing backend services exporting graphql data for 'accounts' & 'billing'. These services have implemented graphql using graphql-java-kickstart (without springboot). I want to ...
0
votes
1
answer
481
views
How can I propagate graphQL query argument to child dataFetchers using graphQL java
I am using those GraphQL Java dependencies:
| +- com.graphql-java:graphql-java:jar:17.3:compile
| | +- com.graphql-java:java-dataloader:jar:3.1.0:compile
With this schema:
schema {
query: ...
1
vote
1
answer
800
views
GraphQL Java Kickstart Tools Enums causing exception - Expected enum with name 'XXX' but found none
How is a Java enum correctly registered with GraphQL when using the kickstart framework with spring?
In attempting to use a GraphQL schema enum with an equivalent Java enum in a simple Java Spring ...
1
vote
2
answers
1k
views
Consuming graphql query in Java
I have Graphql query in this format :
query {
priceData {
customer
id
title
dob
}
}
In java, we use this query in String format Like :
"{\"query\":\"query {\\...
9
votes
2
answers
6k
views
getting requested fields on resolver level from graphql
Model of book from graphql schema
type Book {
id: ID
name: String
pageCount: Int
author: Author
}
So I am having this resolver for Book
public class BookResolver implements ...
2
votes
2
answers
11k
views
Disable GraphQL Introspection in graphql-java-tools
I am trying to disable GraphQL Introspection in my project and not having much luck with specific framework I am using. Some articles say it can be done in CcodeRegistry module but that is a ...
0
votes
1
answer
4k
views
Can I safely call back a GraphQLQueryResolver from a GraphQLResolver?
My question is: what is the best when implementing resolving methods? direct call of data repositories or calling back a main resolver aka one implementing GraphQLQueryResolver (provided it has ...
1
vote
1
answer
3k
views
graphql servlet not started with graphql-java-tools (schema files not found?)
So according to the graphql-java-kickstart/graphql-java-tools a 'graphql' endpoint should become available when the dependency 'com.graphql-java-kickstart:graphql-spring-boot-starter' is added to the ...
7
votes
2
answers
8k
views
Error handling with graphql-java-tools and graphql-spring-boot-starter
How to handle errors in my graphQL API? I am using graphql-java-tools and graphql-spring-boot-starter. I created error handler but every time I get response 200 even when exception was thrown. Could ...
3
votes
2
answers
9k
views
How to execute Java calls to GraphQL in a Spring Boot + GraphQL Java Tools' context?
In a Spring Boot application, we're already having a fully functional GraphQL endpoint, serving .graphqls files via GraphQL Java Tools (we included the graphql-spring-boot-starter dependency) and ...
6
votes
4
answers
15k
views
How to upload files with graphql-java?
I can't find out how to upload files if i use graphql-java, can someone show me a demo? I will be appreciated!
reference : https://github.com/graphql-java-kickstart/graphql-java-tools/issues/240
I ...
2
votes
1
answer
3k
views
Use enum as query argument in Graphql
What is the graphql syntax in SDL to use an enum as a query argument?
schema {
query: Query
}
type Query {
getWordsCountByLanguage (language: LanguageIso): [WordCount]
}
enum LanguageIso {
...
9
votes
1
answer
6k
views
Difference in usage of graphql-java vs graphql-java-tools
Im new to graphql found 2 java implementation
using from official graphql: https://www.graphql-java.com/documentation/v10/
and
https://github.com/graphql-java-kickstart/graphql-java-tools
Like ...
3
votes
2
answers
2k
views
graphql-java-tools: null parameter vs not present parameter
How can I distinguish in java graphQL if a parameter was explicitly set to null, or if it was not provided at all?
The use case that I try to achieve is the following: I have a mutation like this
...