graphql-java Questions
6
I'm working on graphQL and spring boot project. The API works well using graphiQL but when trying to consume it using Apollo vueJS, it causes CORS origin error.
I'm using @CrossOrigin annotation ...
Divisible asked 20/9, 2019 at 10:39
3
Solved
I recently started working with graphql and found it very intriguing. Since most of my rest apps were in java, I decided to do a quick setup using the provided spring boot starter project by the gr...
Sobriety asked 5/8, 2017 at 14:1
3
Solved
We are planning use Graphql as backend server in our application. We choose Graphql-Java to develop our POC. We came across a stituation to create our own scalartype to handle java.util.Map object ...
Taligrade asked 4/9, 2017 at 10:10
2
Solved
I am working on a graphql issue where I am getting following error for the request
{
customer(id: "5ed6092b-6924-4d31-92d0-b77d4d777b47") {
id
firstName
lastName
carsInterested
}
}
"messag...
Birthplace asked 1/1, 2020 at 19:33
5
Solved
I have two entity manager configurations for two separate databases but when I try to auto-wire an entity manager in to configure my GraphQLExecutor bean I get an exception stating that there are t...
Pericranium asked 7/7, 2017 at 11:53
6
I am exploring GraphQL and would like to know if there is any way of renaming the response field for example i have a POJO with these field
class POJO {
Long id;
String name;
}
GraphQL query:
...
White asked 19/12, 2017 at 8:48
7
Solved
I am currently in the middle of migrating my REST-Server to GraphQL (at least partly). Most of the work is done, but i stumbled upon this problem which i seem to be unable to solve: OneToMany relat...
Orsino asked 30/12, 2017 at 20:25
4
Solved
I tried few variant and had no luck to return a map in GraphQL. So I have the following two objects:
public class Customer {
private String name, age;
// getters & setters
}
public class ...
This asked 6/12, 2017 at 12:41
2
Solved
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 BookByIdQueryResol...
Fidelia asked 28/1, 2021 at 10:20
1
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 wit...
Claque asked 13/11, 2019 at 18:21
1
Solved
I got this type of query
query {
searchRandom (param : MyObjectClass){
city
}
}
How may I set param with the type of MyObjectClass and pass it in the query? To be able to test here?
Louisalouisburg asked 18/2, 2022 at 19:20
4
Solved
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
...
Rutheruthenia asked 6/8, 2019 at 8:49
0
I'm using the graphql-java-kickstart library in Spring Boot and have some code like so:
class MyResolver implements GraphQLQueryResolver {
public String helloWorld(DataFetchingEnvironment env) {
...
Deplore asked 28/1, 2022 at 15:53
3
Looking for converting Flux to List<Object>. Getting error if I use block(). So, need to conver without blocking calls.
Flux.from(Collection.find())
Using reactive programming, but graphq...
Adrastus asked 31/5, 2020 at 1:40
1
Solved
I try to convert our model into a GraphQL schema using the following resolver:
@Component
public class QueryResolver implements GraphQLQueryResolver {
public List<Result> results;
}
But ...
Sweeper asked 19/4, 2018 at 9:34
2
Solved
I have to send a query with some headers and graphQL variables as a POST call to a GraphQL API in java. I also have to send some headers and authentication parameters in the query. Right now, I am ...
Hargeisa asked 26/11, 2019 at 16:11
5
I'm trying to set up a simple Android app that connects to a GraphQL server set on my local host via a Springboot application using Java GraphQL. Using GraphiQL I can queries just fine. The issue i...
Patriarchate asked 1/8, 2019 at 21:31
2
Solved
I really like the way SPQR makes easy to integrate graphql with an existing system, the only thing I'd like to see is the .graphqls file so I can learn more on GraphQL Syntax.
Is there a way to ge...
Hemialgia asked 29/8, 2018 at 21:47
0
I have a mutation which accepts WorkspaceDTO(POJO):
public WorkspaceDTO createWorkspace(WorkspaceDTO workspaceDTO) {
Workspace workspace = workspaceMapper.toEntity(workspaceDTO);
Workspace newWor...
Decima asked 30/7, 2021 at 17:25
2
I am planning to implement Graphql in my spring boot application. I Googled many sites for Graphql server setup in Java and came across two ways of doing it .
One is implementing GraphQlResolver ...
Dare asked 12/6, 2019 at 5:8
3
Solved
In a project I use graphql-java and spring boot with a postgreSQL Database. Now I would like to use the subscription feature published in version 3.0.0. Unfortunately, the information about the app...
Inainability asked 30/5, 2017 at 19:18
3
Solved
I'm finding it really difficult to separate queries from one schema file. I want to have something like this:
car.graphqls
type Query {
car(id: ID!): Car
}
type Car {
id: ID!,
name: String!
}...
Tough asked 22/2, 2020 at 21:59
0
Kotlin Android app using graphQl & ApolloClient.
I want to test this method:
fun myMethod(id: String): Single<List<MyEntity>> {
val call = Query(id)
return Rx2Apollo.from(apolloCl...
Foxglove asked 29/9, 2020 at 9:59
1
Solved
Currently we are using
<dependency>
<groupId>com.graphql-java-kickstart</groupId>
<artifactId>graphql-spring-boot-starter</artifactId>
<version>${graphql-s...
Corona asked 4/6, 2020 at 18:48
1
Solved
Currently we want to consume a graphQL endpoint in a springboot application using resttemplate
However, when we make a POST request with the below query we are always receiving the same error {"er...
Cytoplasm asked 6/2, 2020 at 21:44
1 Next >
© 2022 - 2024 — McMap. All rights reserved.