Questions tagged [netflix-dgs]

75 questions
0
votes
1 answer

DGS Framework: how to provide additional data to the data fetcher?

I have a example DgsQuery: @DgsQuery public List sensors(DgsDataFetchingEnvironment dfe) { SensorType sensorType = SensorType.newBuilder() .id(UUID.randomUUID().toString()) .build(); Sensor sensor…
Alex Tbk
  • 2,042
  • 2
  • 20
  • 38
0
votes
0 answers

DSG Netflix - having issue while running integration test case

@DgsMutation public CompletableFuture createAttachment(@InputArgument(REQUEST) @Valid @NotNull AttachmentCreateRequest attachment, @RequestHeader(name = "EVENT_ID") String header) { return…
Praveen
  • 1
  • 1
  • 3
0
votes
0 answers

How to dynamically register with Graphql NetflixDgs based on schema?

For instance I have a schema that has directives and tags. In Java it seems like the GraphQLSchema type is being populated AFTER registration, but I want to use typing here to determine things during registration. Is there a way to do this without a…
crychair
  • 337
  • 3
  • 20
0
votes
1 answer

How to hide graphQL fields in Netflix DGS framework?

How can you hide a graghQL field in DGS framework. E.g. as below, what can you use so that title cannot be fetched or isn't visible to the client? type Show { title: String actors: [Actor] }
Bongo
  • 333
  • 3
  • 12
0
votes
2 answers

Is it possible to input one argument out of two in GraphQL?

I have a situation where in I have to input one parameter out of the given two. Suppose the schema is input fruit { apple: Apple banana: banana } Now, if user inputs apple, then he cannot input banana and vice-versa. Is this possible in…
0
votes
1 answer

Missing import in graphqldgs springboot application

I have installed and setup graphqldgs on a spring boot project following the guide here: https://netflix.github.io/dgs/getting-started/ When i try to write a test case - following the guide here:…
DanDevO
  • 77
  • 11
0
votes
4 answers

More than 15000 parse tokens have been presented

I am using Spring Boot with Netflix DGS (GraphQL) frameworks. I need to mutation my type which is big "Object" with recursive binding. When I want to use mutation, the DGS framework responses me with this error message: More than 15000 parse tokens…
Altair
  • 325
  • 3
  • 16
0
votes
0 answers

Java GraphQL dgs client

I have the below query to be consumed using graphql dgs client. I have implemented the first query using com.netflix.graphql.dgs.client.codegen.GraphQLQueryRequest in which I have created a root object given below and a tocResourceGraphQLQuery to be…
0
votes
2 answers

DGS Code Generation plugin generate only the types for the schema

I'm a novice to GraphQL. Currently I'm trying to generate a GraphQL client with Netflix's DGS framework. I used the schema of SWAPI as my Domain Graph Service’s GraphQL schema file. But the tool only generates only the Classes and Interfaces related…
0
votes
1 answer

How to access object without passing it as parameter?

Is there a way to autowire an object that needs to be re-instantiated frequently? I am using Netflix's DGS + spring boot framework, and basically storing the user authentication details in a custom context which is created for each request. I am…
zeng
  • 23
  • 5
0
votes
1 answer

Querying GraphQL Microservice with API key?

I have developed two Netflix DGS GraphQL Microservices and Apollo Gateway on top of these two microservices to make them as an federated graphql. I have a client application that is trying to query both the graphql microservices. And both…
0
votes
2 answers

Federated GraphQL schema validation

I have created 3 microservices in my project and implemented GraphQL Netflix DGS federation framework. https://netflix.github.io/dgs/ As a company, We are having more than 30 schemas from different micro services from different teams. But, if schema…
Stella
  • 1,728
  • 5
  • 41
  • 95
0
votes
1 answer

Dataloader for attributes that are not at top level does not work

I am using Netflix's DGS framework to build a java graphqQL service. I tried to use the data loader (https://netflix.github.io/dgs/data-loaders/) and it works fine as long as the parent type is a top level attribute (i.e. immediate child of…
0
votes
2 answers

DGS Code Generation plugin: generateJava not working

I am trying generate pojo files from schema using this guide https://netflix.github.io/dgs/generating-code-from-schema/ build.gradle.kts dependencies { implementation("org.springframework.boot:spring-boot-starter-web") …
1 2 3 4
5