Questions tagged [netflix-dgs]

75 questions
1
vote
0 answers

Servlet Filter with ThreadLocal in Netflix DGS

Stack: Spring Boot: 2.4.5 DGS: 3.11.0 Case: There is a need to filter each request and read from it HTTP headers. The value from the headers should be accessible in downstream code which processes the GraphQL request. A common approach could be to…
vzhemevko
  • 815
  • 8
  • 25
1
vote
0 answers

Controller in DGS Netflix Graphql

We are developing a project Using Spring boot with DGS Netflix graphql. We are created all the schemas and datafethers which is working absolutely fine with a default endpoint "/graphql". we would like to expose this app with custom endpoing so we…
user2334926
  • 321
  • 2
  • 7
  • 16
1
vote
1 answer

How to create a DGS GraphQL Subscription to an ActiveMQ Topic

I have a bit of a complicated technology stack. I am leveraging Netflix DGS to provide a GraphQL service. Behind the scenes are a bunch of JMS components sending and receiving data from various services. I have everything working outside of a…
1
vote
1 answer

Netflix DGS Subscriptions

I'm following the documentation of DGS subscriptions and I'm not getting any errors but not getting back any data either. The setup is very simple. In the schema.graphqls file I have defined the subscription: type Subscription { ratings:…
Jonck van der Kogel
  • 2,983
  • 3
  • 23
  • 30
0
votes
0 answers

Using netflix-dgs with WebFlux

This might be a dumb questions, with me being a novice getting starting with the whole reactive programming methodology. Task: But I'm working on developing a Spring Boot Netflix DGS based GraphQL API Implementation: So I am using the standard…
Bala Kumar
  • 355
  • 2
  • 4
  • 12
0
votes
0 answers

Authorise WebClient to access endpoints protected with @PreAuthorize

I'm trying to run API level tests against a Spring Boot Application. We use DGS for GraphQL and our endpoints are secured with @PreAuthorize annotations. The tests look something like this: @SpringBootTest(webEnvironment =…
fafl
  • 7,222
  • 3
  • 27
  • 50
0
votes
1 answer

Gradle is unable to download com.netflix.graphql.dgs:*.jar?

Gradle is unable to download com.netflix.graphql.dgs:*.jar artifacts even though these artifacts exists in the maven central repo. C:\Users\abc\.gradle\caches\modules-2\files-2.1\com.netflix.graphql.dgs\graphql-dgs-client>dir Volume in drive C is…
CodeBot
  • 33
  • 5
0
votes
0 answers

Filter out return values with empty field in GraphQL subscriptions

I am implementing a subscription API using Netflix's Dgs Framework. Assuming my schema and other data are as follows: type Subscription { mySubscription: MySubscription } type MySubscription { id: ID person(name: String): Person eventTime:…
Jumple
  • 25
  • 4
0
votes
0 answers

graphql-java query returns null for endpoint that accepts user input as filter

I am working with Netflix Dgs with springboot to handle my queries. My resolver accepts a filter as an input. My goal is to be able to find a patient based on patient name and service name (for now, will update to validate with patient DOB), and…
0
votes
0 answers

How to get graphql query using DGS

I send such a query using graphiql: { project(projectId: "634593f811af096d17579a0d") { id name locations { id name } } } I have such a dataFetcher @DgsQuery public Project…
Zakhar
  • 58
  • 3
0
votes
0 answers

The java-test-fixtures plugin not working with dgs framework

I tried to use java-test-fixtures plugin in project with dgs framework but it looks it is not working. It was working with version 5.5.3 (spring boot 2.7) of dgs framework but since 6 (spring boot 3) no. I have simple spring boot project with dgs…
tomsvet
  • 1
  • 1
0
votes
0 answers

How to use both DGS and graphql-java in single spring boot app

I already have spring boot application implementing graphql queries using graphql-java library. Now would like to use netflix DGS library for new queries only. Please let me know if it can be done ?
Subra M
  • 581
  • 1
  • 8
  • 16
0
votes
1 answer

How to get the SecurityContext from within a DataFetcher (WebFlux + DGS GraphQL)

I am wondering if it is possible to obtain the Authentication from within the onField function contained in a SchemaDirectiveWiring. I've looked into using the ReactiveSecurityContextHolder and SecurityContextHolder.getContext().getAuthentication()…
Henry Hargreaves
  • 285
  • 4
  • 18
0
votes
0 answers

How to resolve types from another subgraph in apollo federation v2

I am trying to design a graphql API and I want to use apollo federation v2. I have two subgraph or micro-services: Billing Subgraph: responsible to retrieve a bill for a customer Payment Subgraph: responsible to fetch payment for a…
0
votes
0 answers

Is @DgsComponent singleton

Is @DgsComponent(com.netflix.graphql.dgs.DgsComponent) singleton/thread safe? Created a data fetcher using @DgsComponenet & created a class level variable String temp Assessing if it is thread safe