Ref: file paths
This commit is contained in:
parent
1bc25f6eaa
commit
782698788b
@ -7,7 +7,7 @@ import { MercuriusDriver, MercuriusDriverConfig } from "@nestjs/mercurius";
|
|||||||
import { AppService } from "./app.service";
|
import { AppService } from "./app.service";
|
||||||
import { UserModule } from "./user/user.module";
|
import { UserModule } from "./user/user.module";
|
||||||
|
|
||||||
import { GraphqlOptions } from "./graphqlOptions";
|
import { GraphqlOptions } from "./graphql/graphqlOptions";
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [
|
imports: [
|
||||||
|
@ -9,7 +9,7 @@ export class GraphqlOptions implements GqlOptionsFactory {
|
|||||||
|
|
||||||
createGqlOptions(): Promise<MercuriusDriverConfig> | MercuriusDriverConfig {
|
createGqlOptions(): Promise<MercuriusDriverConfig> | MercuriusDriverConfig {
|
||||||
return {
|
return {
|
||||||
autoSchemaFile: "src/schema.gql",
|
autoSchemaFile: "src/graphql/schema.gql",
|
||||||
subscription: {
|
subscription: {
|
||||||
context: (_connection, request) => {
|
context: (_connection, request) => {
|
||||||
const authorization = request.headers.authorization;
|
const authorization = request.headers.authorization;
|
@ -3,7 +3,7 @@ import { Module } from "@nestjs/common";
|
|||||||
import { UserResolver } from "./user.resolver";
|
import { UserResolver } from "./user.resolver";
|
||||||
import { UserService } from "./user.service";
|
import { UserService } from "./user.service";
|
||||||
|
|
||||||
import { PrismaService } from "src/prisma.service";
|
import { PrismaService } from "src/prisma/prisma.service";
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
providers: [UserResolver, UserService, PrismaService]
|
providers: [UserResolver, UserService, PrismaService]
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Injectable } from "@nestjs/common";
|
import { Injectable } from "@nestjs/common";
|
||||||
import { PrismaService } from "src/prisma.service";
|
import { PrismaService } from "src/prisma/prisma.service";
|
||||||
import { CreateUserInput } from "./dto/create-user.input";
|
import { CreateUserInput } from "./dto/create-user.input";
|
||||||
import { UpdateUserInput } from "./dto/update-user.input";
|
import { UpdateUserInput } from "./dto/update-user.input";
|
||||||
import { SetUserPasswordInput } from "./dto/setpassword-user.input";
|
import { SetUserPasswordInput } from "./dto/setpassword-user.input";
|
||||||
|
Loading…
Reference in New Issue
Block a user