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 { UserModule } from "./user/user.module";
|
||||
|
||||
import { GraphqlOptions } from "./graphqlOptions";
|
||||
import { GraphqlOptions } from "./graphql/graphqlOptions";
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
|
@ -9,7 +9,7 @@ export class GraphqlOptions implements GqlOptionsFactory {
|
||||
|
||||
createGqlOptions(): Promise<MercuriusDriverConfig> | MercuriusDriverConfig {
|
||||
return {
|
||||
autoSchemaFile: "src/schema.gql",
|
||||
autoSchemaFile: "src/graphql/schema.gql",
|
||||
subscription: {
|
||||
context: (_connection, request) => {
|
||||
const authorization = request.headers.authorization;
|
@ -3,7 +3,7 @@ import { Module } from "@nestjs/common";
|
||||
import { UserResolver } from "./user.resolver";
|
||||
import { UserService } from "./user.service";
|
||||
|
||||
import { PrismaService } from "src/prisma.service";
|
||||
import { PrismaService } from "src/prisma/prisma.service";
|
||||
|
||||
@Module({
|
||||
providers: [UserResolver, UserService, PrismaService]
|
||||
|
@ -1,5 +1,5 @@
|
||||
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 { UpdateUserInput } from "./dto/update-user.input";
|
||||
import { SetUserPasswordInput } from "./dto/setpassword-user.input";
|
||||
|
Loading…
Reference in New Issue
Block a user