move graphql types into graphql folder (#8420)

This commit is contained in:
Ulf Gebhardt 2025-04-22 15:28:01 +02:00 committed by GitHub
parent 74b79e0b14
commit 7592fe29be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
42 changed files with 17 additions and 18 deletions

View File

@ -14,14 +14,14 @@ mkdir -p build/src/middleware/helpers/email/templates/de/
cp -r src/middleware/helpers/email/templates/de/*.html build/src/middleware/helpers/email/templates/de/
# gql files
mkdir -p build/src/schema/types/
cp -r src/schema/types/*.gql build/src/schema/types/
mkdir -p build/src/graphql/types/
cp -r src/graphql/types/*.gql build/src/graphql/types/
mkdir -p build/src/schema/types/enum/
cp -r src/schema/types/enum/*.gql build/src/schema/types/enum/
mkdir -p build/src/graphql/types/enum/
cp -r src/graphql/types/enum/*.gql build/src/graphql/types/enum/
mkdir -p build/src/schema/types/scalar/
cp -r src/schema/types/scalar/*.gql build/src/schema/types/scalar/
mkdir -p build/src/graphql/types/scalar/
cp -r src/graphql/types/scalar/*.gql build/src/graphql/types/scalar/
mkdir -p build/src/schema/types/type/
cp -r src/schema/types/type/*.gql build/src/schema/types/type/
mkdir -p build/src/graphql/types/type/
cp -r src/graphql/types/type/*.gql build/src/graphql/types/type/

View File

@ -0,0 +1,3 @@
enum ShoutTypeEnum {
Post
}

View File

@ -1,16 +1,7 @@
enum ShoutTypeEnum {
Post
}
type Reward {
id: ID!
user: User @relation(name: "REWARDED", direction: "IN")
rewarderId: ID
createdAt: String
badge: Badge @relation(name: "REWARDED", direction: "OUT")
}
type SharedInboxEndpoint {
id: ID!
uri: String
}

View File

@ -0,0 +1,4 @@
type SharedInboxEndpoint {
id: ID!
uri: String
}

View File

@ -2,8 +2,9 @@
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
import { makeAugmentedSchema } from 'neo4j-graphql-js'
import typeDefs from '@graphql/types/index'
import resolvers from './resolvers'
import typeDefs from './types'
export default makeAugmentedSchema({
typeDefs,