graphql-java Questions

1

Solved

I want to create mutation apis where input can be of different types, something like interface which we have in types. I know that we cannot have interface in input types, I want to know how we can...
Hearthside asked 2/2, 2020 at 7:28

3

I am new to GraphQL. I know it is very basic question. But tried spending lot of time and i couldn't make it. My requirement is i need to send GraphQL query by using graphql-java api methods from ...
Nievesniflheim asked 28/4, 2016 at 12:36

1

At the moment, all my query resolvers are under a single Query class and a single Query schema / type as such: schema { query: Query #I'd prefer UserQueries and OrganisationQueries mutation: Use...
Hithermost asked 2/7, 2019 at 16:27

3

I'm developing an android application that uses GraphQL as the back-end. I have the query and mutation part working perfectly. But I couln't find any documentations for authentication. So how can...
Kampong asked 21/9, 2018 at 10:26

1

Solved

I am using graphql-spqr So that I don't have to create schema.graphql files. I have a base class in which most of my other classes inherit from. For example @GraphQLInterface(name = "BaseResponse...
Metameric asked 28/6, 2019 at 7:39

1

Solved

I am trying to create a graphql client in Java project and I am using apollographql library. The problem is that I am not able to get the dependencies using the pom.xml with version different than ...
Entirely asked 22/5, 2019 at 23:16

2

I am working in an graphql application where I have to send custom error object / message in json irrespective of whether it occurs in servlet or service. Expected error response { errorCode: 400...
Hideout asked 29/8, 2018 at 18:24

1

Solved

I'm thinking about adding GraphQL functionalities to my Spring Boot application. I found there are two artifacts for that. One is com.graphql-java-kickstart:graphql-spring-boot-starter and the ot...
Schwerin asked 18/1, 2019 at 9:45

1

I am using the graphql-spring-boot library, and using the resolver objects to resolve the value of the input query. Here's an example: @Component public class BookResolver implements GraphQLQue...
Pren asked 16/7, 2018 at 18:3

1

Solved

I am using this endpoint: @PostMapping("graphql") public ResponseEntity<Object> getResource(@RequestBody Object query) { // String query ExecutionResult result; if (query instanceof Stri...
Noenoel asked 21/1, 2019 at 15:38

1

Solved

I have problem adding resolver using this approach in graphql: @RestController @RequestMapping("/api/dictionary/") @RequiredArgsConstructor(onConstructor = @__(@Autowired)) public class Dictionary...
Lamoureux asked 18/1, 2019 at 10:21

2

Solved

I’m working on a spring boot project with GraphQL. I'm using graphql-java-tools and graphql-spring-boot-starter. I managed to configure security and session management with spring security as you c...

1

In my database the Event field was populated both dynamically with an array of strings while some were populated manually with text (No array). When I execute my query the results that were populat...
Neruda asked 20/10, 2018 at 22:39

2

I am using GraphQL with java. I have several schema files to be parsed. Can anybody please let me know whether there is a way to do it. I have used the below way which lets only one schema file to ...
Huge asked 4/10, 2017 at 9:16

1

We are using GraphQL as a query language for a data aggregation engine. I am looking for ideas to represent simple (or complex) arithmetic calculation functions in GraphQL referring to existing ty...
Eboni asked 24/9, 2018 at 20:33

1

I have a following GraphQL query query { Result: querydata { name code description } } that returns me the following data { "data": { "Result": [ { "name": "Class1", "code": "ST1", "...
Gahan asked 18/9, 2018 at 10:59

1

I was trying to create an enum type with Int value in GraphQL schema but failed. I might miss something in the doc. Anyone has any idea about how to implement Int value in the enum type like below?...
Georginegeorglana asked 1/8, 2018 at 4:14

0

In our GraphQL SpringBoot application we are successfully using custom scalar implementation for LocalDateTime via graphql-java-datetime <dependency> <groupId>com.zhokhov.graphql</...
Equalitarian asked 30/7, 2018 at 12:21

1

I want to test GraphQL in a project that also uses Spring Boot, Spring Security; and I hope to use the latest [as of writing] Spring Boot 2.0.3.RELEASE. As described in more detail below, I found t...
Ephebe asked 13/7, 2018 at 12:51

1

Solved

I am currently using Spring Boot Starter and GraphQL Java Tools to use GraphQL in my Spring application. It works well together with my authorization filter, as long as i authorize the graphql endp...
Sidestroke asked 26/5, 2018 at 10:30

3

Solved

I am getting the following and cant seem to find an answer. Error [ValidationError{validationErrorType=FieldUndefined, queryPath=[find_by_id], message=Validation error of type FieldUndefined: Fiel...
Oliviaolivie asked 26/4, 2018 at 12:21

1

Solved

I am new to GrapQL. I am trying to use it with spring boot. I can make query successfully, it is returning the data that I need, but i want now to use mutation. I need to add a use to database when...
Loferski asked 25/2, 2018 at 0:2

1

Solved

I have to use a Java object in GraphQL in response as well as in request. Should I have to write two times each objects as 'input' and 'type' in a GraphQL schema file? For getting that object in ...
Array asked 14/2, 2018 at 12:22

2

Solved

We use graphql on our project and use graphql-java 2.3.0 (we plan to update but it is not possible at the moment). I'm trying to perform such mutation: mutation { UPDATE_User( id:3, type: nu...
Gittle asked 28/7, 2017 at 13:45

1

Solved

Can you use fragments in graphql server schema file? Could you please point me to an example
Mohair asked 23/1, 2018 at 5:10

© 2022 - 2024 — McMap. All rights reserved.