Relative Content

Tag Archive for graphqlnestjsnestjs-graphql

Why is the injected GraphQL context in my request-scoped service undefined

I’m building a NestJs app, that for each single request, needs to setup a third party client instance, which depends on a user-specific access token, which gets resolved through the request headers. A request may call several service methods, and I would like to avoid having to pass the client to each method individually.

Why is the injected GraphQL context in my request-scoped service undefined

I’m building a NestJs app, that for each single request, needs to setup a third party client instance, which depends on a user-specific access token, which gets resolved through the request headers. A request may call several service methods, and I would like to avoid having to pass the client to each method individually.

Why is the injected GraphQL context in my request-scoped service undefined

I’m building a NestJs app, that for each single request, needs to setup a third party client instance, which depends on a user-specific access token, which gets resolved through the request headers. A request may call several service methods, and I would like to avoid having to pass the client to each method individually.

Why is the injected GraphQL context in my request-scoped service undefined

I’m building a NestJs app, that for each single request, needs to setup a third party client instance, which depends on a user-specific access token, which gets resolved through the request headers. A request may call several service methods, and I would like to avoid having to pass the client to each method individually.

How to create a recursive graphql input with nestjs?

I want to create a recursive input for one of my graphql queries and add filters to have the possibility to create groups of filters.
A basic filter must have an id, a value and an operator.
A group of filters must have a condition (and/or) and a filters array which is either a basic filter or another group filters.