Questions tagged [netflix-dgs]

75 questions
0
votes
0 answers

Netflix dgs-framework: difference of WebMVC's library and Webflux's library

The sentence from the documentation of graphql-ws has put me in a difficulty in my project. If there is already an active subscriber for an operation matching the provided ID, regardless of the operation type, the server must close the socket…
Jumple
  • 25
  • 4
0
votes
1 answer

Netflix DGS Codegen + Relay Pagination unable to generate datafetchers classes

i am trying to implement codegen for a maven project (https://github.com/deweyjose/graphqlcodegen) along with relay pagination (https://netflix.github.io/dgs/advanced/relay-pagination/) My Schema.graphqls file is: type Employee @connection { …
0
votes
0 answers

using DgsScalar in a dependency

I'm trying to use a customer DGS scalar type defined in a dependency. This class is annotated with @DgsScalar(name = "Locale"). When I try to use it in a project with contains this dependent project in a pom dependency, I can see this class in…
0
votes
1 answer

DGS pre-loading with filter

Let's say I have the following schema type Query { shows: [Show] } type Show { # The showId may or may not be there, depending on the scenario. showId: ID title: String reviews(filter: MyFilter): [Review] } type Review { starRating:…
Lukas
  • 13,606
  • 9
  • 31
  • 40
0
votes
0 answers

How do I use the DgsQueryExecutor with a dynamic GraphQL schema

I'm trying to test my graphQL schema using the DgsQueryExecutor. My GraphQL schema is dynamically created using @DgsCodeRegistry and @DgsTypeDefinitionRegistry. This is the code for my test @SpringBootTest public class DataFetcherRegistryTest { …
user3236794
  • 578
  • 1
  • 6
  • 16
0
votes
1 answer

Import graphql schema from parent module in spring boot

I am trying to import my schema definition files from a parent module which is imported in maven. The schema files exist under resources in my parent jar file, is there a way to import those schema files in my child project? I can copy the files…
0
votes
0 answers

mavenLocal() not using local repo

I made a small change ( https://github.com/jamesmbowler/dgs-framework/commit/0f6def33155e4ac50b8e87ca82f7893a5b0a989b ) on a lib I'm using, just to test out some changes using maven local. I've verified that "publish to maven local" is working. The…
James Bowler
  • 2,194
  • 2
  • 17
  • 23
0
votes
0 answers

Leveraging MongoDB TTL with Spring / GraphQL

I am trying to use MongoDBs TTL feature and have 3 parts of a puzzle. Part 1: According to the MongoDB docs it needs an ISODate object. This ISODate cannot be a string. An example is shown below: db.something.createIndex({"someAgeOff": 1},…
ekjcfn3902039
  • 1,673
  • 3
  • 29
  • 54
0
votes
0 answers

Resolve by ID interface Graphql federation (Apollo)

I am trying to resolve an interface by ID with netflix-dgs and Apollo federation. But the DgsEntityFetcher does not seem to be registered for interfaces. I also tried declaring entity resolvers for types B and C and still null result. Here is a…
0
votes
0 answers

Netflix DGS: Throw Exception if DataLoader fails to received data for all objects

I'm using Netflix DGS library in SpringBoot, and I have a parent query that whose schema is something like, type Parent @connection { attr1 attr2 ... child1: Child } type Child { childAttr1 childAttr2 Here for a graphql…
0
votes
0 answers

Apollo client and DGS server integration conflict on 2 schemas

For using apollo client, it needs to download "schema.graphqls" from the server we are going to send queries to. It is stored under "main/graphql". For using DGS server we need to have our "schema.graphqls" file, which is created under…
0
votes
0 answers

DGS framework how to change default /subscriptions path

I want t change the default "/subscriptions" path to something else like "/something/subscriptions" According to this: DgsWebSocketConfigurationProperties I can change default path from "/subscriptions" to another doing something like this: dgs: …
Clark
  • 1
  • 2
0
votes
1 answer

Spring Cloud API Gateway not forwarding to Netflix DGS graphql endpoint

I'm trying to migrate a project over to using DGS but I'm running into problems with the API gateway. I have a Spring/DGS service running on http://localhost:3000, so the graphql queries are going to http://localhost:3000/graphql. My API gateway has…
jwsinner
  • 358
  • 3
  • 9
0
votes
1 answer

in gradle, what is the equivalent of generateJava in kotlin project?

In the netflix grapql code gen documentation what is the equivalent of generateJava in a kotlin project build script. And how can I specify the directory of generated codes? Also in the below code, should i add all my domain types in the…
DragonKnight
  • 1,740
  • 2
  • 22
  • 35
0
votes
0 answers

DGS Framework: Authentication is failing in nested queries

I have this schema: type Query { locations(id: String): [GQLLocation] } type GQLLocation { id: ID! name: String description: String parent: GQLLocation children: [GQLLocation] devices: [GQLDevice] tenantId: String …
Alex Tbk
  • 2,042
  • 2
  • 20
  • 38