Tag: nestjs
-
Frontend Full Stack Engineer – SPECTRAFORCE TECHNOLOGIES Inc. – Westlake, TX
SPECTRAFORCE TECHNOLOGIES Inc. Westlake, TX Depends on Experience Contract: W2, 12 Month(s) Work from home Skills Angular TypeScript JavaScript GraphQL NestJS Job Description Role: Frontend Full Stack EngineerLocation: Durham, NC/Westlake, TX, Smithfield, RI (Hybrid, 1 Week onsite/Month)Duration: 12+ MonthsPay rate starts from: $60/hr on W2W2 Only Must haves: Angular (Angular 13+), TypeScript, and Core JavaScript…
-
How to authorize NestJs, GraphQL app using Auth0 and Passport?
0 I have developed a NestJs graphql app and now I want to authorize all my mutations and queries. Users get authenticated from Auth0. after following this article I have created below files in my project. AuthModule : import { Module } from ‘@nestjs/common’; import { PassportModule } from ‘@nestjs/passport’; import { JwtStrategy } from…
-
Nest.js + Prisma relationship constantly returning null
0 I’m using Nest.js + GraphQl + Prisma, and trying to create 3 tables: User, Post, and Viewers When getting 1 post I need to add the user as viewer. Successfully saving it to the db but when returning the relationship, viewers is constantly null Here’s my prisma schema: model User { id Int @id…
-
NestJS + Apollo Federation Gateway Save Schema
0 Question When making the Apollo Gateway leveraging the NestJS GraphQL Module, how can you save the schema file? Background Normally with NestJS GraphQL support you can save the schema file with something like this. GraphQLModule.forRoot<ApolloFederationDriverConfig>({ driver: ApolloFederationDriver, autoSchemaFile: { path: join(process.cwd(), ‘./schema.gql’), federation: 2 }, playground: true }), However, it seems like for the…
-
How to use Apollo/Client with nestjs
-1 I am started using apollo and graphl, If anyone used apollo/client with nestjs let me know, how to use it. if i have to query the pubic spaceX graph https://studio.apollographql.com/public/SpaceX-pxxbxen/variant/current/explorer graphql nestjs Share Improve this question Follow asked 1 hour ago Krish909Krish909 6722 silver badges1212 bronze badges Add a comment | Load 4 more…
-
Expected Iterable, but did not find one for field “Query.launches”
0 Schema type Query { launches: [Launch] } type Launch { id: String! mission_name: String } Interface export interface launch { launches: Launch[]; } export interface Launch { id: string; mission_name: string; } Service file async getlaunches(): Promise<any> { console.log(JSON.stringify(this.launchEndpoint)); this.logger.info(‘Demonstrate masking of logged data:’); return await this.apiClient.post(this.launchEndpoint, { query: ‘{ launches { id, mission_name…
-
NestJS: How to get User from the request in a GraphQL custom Guard which extends from JWT AuthGuard
4 I use Passport and GraphQL and if I do my own custom guard to get user’s roles it just doesn’t work. I don’t have access to the user from the request in a Guard, is that intentional? I think it should be part of the request (I’m totally new to NestJS), so why I…