Questions tagged [netflix-dgs]

75 questions
1
vote
0 answers

Second JAR file generated classes

I want to generate a second jar which will not contain any contents of the application but only generated classes. I am using Netflix DGS and it has a plugin which generates the classes from schema. I want to create a dependency containing these…
1
vote
0 answers

How to expose two graphql endpoints using Netflix Dgs one public and the other private in springboot?

How can I expose two api endpoints in graphql one private and another public, where the public will not need authentication and just be accessed from anywhere, or how can I make some queries public and others public, my current implementation all…
justrying
  • 69
  • 7
1
vote
0 answers

GraphQl DGS framework does not register data loader class on server startup

I have created a simple graphQL schema as follows, type Query { showsByIds(input: ShowsByIdsInput! ) : ShowsByIdsOutput! } input ShowsByIdsInput { ids: [ID]! } type ShowsByIdsOutput { ids: [Show!]! } type Show @key(fields: "id"){ …
1
vote
0 answers

GraphQL query response is the response object with null inside ( Spring 3 + Kotlin + GraphQL + DGSCodeGen )

Has the title says, I created an object and that receives various inputs and then on GraphiQL I query it and then it only returns the response object with a null inside. Have this happened to anyone else ? I thought it was because the models were…
soudiogo
  • 13
  • 2
1
vote
0 answers

Spring and Netflix DGS: Access SecurityContext from DgsSubscription Method

We have a custom SecurityService class that internally accesses the current SecurityContext and RequestAttributes via SecurityContextHolder and RequestContextHolder for every method call of the service. Imagine the custom class User returned from…
1
vote
0 answers

Springboot: Unable to access GraphQL server and GraphiQL

I am building a multimodule springboot application, I have one module that only does graphql queries and mutations, the challenge am facing is when I try to run the app and query graphql I end up getting 404 not found { "timestamp":…
justrying
  • 69
  • 7
1
vote
1 answer

Is it possible to do multiple queries in one request with Netflix DGS?

I am doing the query like this: GraphQLQueryRequest req = new GraphQLQueryRequest(query, projection); String serialized = req.serialize(); GraphQLResponse response = getClient().executeQuery(serialized); The response seems to be…
Thiago Sayão
  • 2,197
  • 3
  • 27
  • 41
1
vote
0 answers

Netflix DGS client with code generation - how to properly desserialize json response?

I am generating code to consume a GraphQL Service with graphqlcodegen. Maven plugin setup looks like this: io.github.deweyjose graphqlcodegen-maven-plugin
Thiago Sayão
  • 2,197
  • 3
  • 27
  • 41
1
vote
1 answer

How to configure netflix dgs?

This is a really simple question, but hard to find the answer. I'm using kotlin DSL and gradle (so build.gradle.kts and settings.gradle.kts). I'm using netflix-dgs and spring boot like…
Willy Xiao
  • 370
  • 1
  • 12
1
vote
0 answers

How can I use a non-nullable subfield with netflix dgs / springboot / kotlin?

Right now, my project uses netflix/springboot/kotlin. I want to have an SDL like: type Shows { name: String! writer: Writer! } type Writer { name: String! } In this case, a show must have a writer. When I codegen, I get the relevant Kotlin…
Willy Xiao
  • 370
  • 1
  • 12
1
vote
1 answer

How to access the complete runtime GraphQLSchema object with Netflix DGS?

I need to access the complete GraphQLSchema object outside GraphQL request handling. When I used graphql-java directly I was in full control and had the control of this. Right now I need to accomplish the same with Netflix DGS and can't find how to…
Learner
  • 1,215
  • 1
  • 11
  • 26
1
vote
1 answer

How to enable @AuthenticationPrincipal argument in a DGS query

I'm working on a Spring Boot service that has both a REST controller and a Netflix DGS GraphQL component. REST methods are protected with Spring Security, and whenever the current username is required, I add a method argument using the…
1
vote
1 answer

Generating projection using graphql file for DGS client

I'm trying to write a java-graphql client using Netflix DGS. In the developer documentation, the following sample code is given for generating query using classes generated with DGS codegen. GraphQLQueryRequest graphQLQueryRequest = …
Mat G
  • 360
  • 2
  • 9
1
vote
0 answers

Netflix's DGS graphql client for upload example

I am new to graphql and I am trying to use graphql client library from Netflix dgs framework to call graphql api from Spring framework based Java client. Most of things are working, but struggling to get Upload mutation work. Any one has any…
Y_K
  • 11
  • 1
1
vote
1 answer

Can't Unresolved reference Bigdecimal. But I added ExtendedScalars

i have some problem when i use netflix dgs. I added some type ExtendsScalar @DgsComponent class ScalarExtendRegistration { @DgsRuntimeWiring fun addScalar(builder: RuntimeWiring.Builder): RuntimeWiring.Builder { return…
Bo Hun Kim
  • 33
  • 4