diff --git a/src/app.module.ts b/src/app.module.ts index a2b08b6..dc4474c 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -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: [ diff --git a/src/graphqlOptions.ts b/src/graphql/graphqlOptions.ts similarity index 93% rename from src/graphqlOptions.ts rename to src/graphql/graphqlOptions.ts index 77c25d1..8d3832d 100644 --- a/src/graphqlOptions.ts +++ b/src/graphql/graphqlOptions.ts @@ -9,7 +9,7 @@ export class GraphqlOptions implements GqlOptionsFactory { createGqlOptions(): Promise | MercuriusDriverConfig { return { - autoSchemaFile: "src/schema.gql", + autoSchemaFile: "src/graphql/schema.gql", subscription: { context: (_connection, request) => { const authorization = request.headers.authorization; diff --git a/src/schema.gql b/src/graphql/schema.gql similarity index 100% rename from src/schema.gql rename to src/graphql/schema.gql diff --git a/src/prisma.service.ts b/src/prisma/prisma.service.ts similarity index 100% rename from src/prisma.service.ts rename to src/prisma/prisma.service.ts diff --git a/src/user/user.module.ts b/src/user/user.module.ts index 78c412c..77106f4 100644 --- a/src/user/user.module.ts +++ b/src/user/user.module.ts @@ -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] diff --git a/src/user/user.service.ts b/src/user/user.service.ts index 825bd3f..6cce326 100644 --- a/src/user/user.service.ts +++ b/src/user/user.service.ts @@ -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";