🍱 graphql schema stitching related changes

This commit is contained in:
2026-03-05 01:00:04 -05:00
parent 22cbdcd468
commit 8a8acc656a
7 changed files with 539 additions and 351 deletions

View File

@@ -861,6 +861,19 @@ export const resolvers = {
}),
},
// Field resolvers for statistics types
FileTypeStats: {
id: (stats: any) => stats._id || stats.id,
},
PublisherStats: {
id: (stats: any) => stats._id || stats.id,
},
IssueStats: {
id: (stats: any) => stats._id || stats.id,
},
UserPreferences: {
id: (prefs: any) => prefs._id.toString(),
fieldPreferences: (prefs: any) => {

View File

@@ -133,6 +133,9 @@ export const typeDefs = gql`
# Raw sourced metadata (for transparency)
sourcedMetadata: SourcedMetadata
# Inferred metadata (from filename parsing)
inferredMetadata: InferredMetadata
# File information
rawFileDetails: RawFileDetails
@@ -387,6 +390,18 @@ export const typeDefs = gql`
subtitle: String
}
# Inferred metadata output type
type InferredMetadata {
issue: Issue
}
type Issue {
name: String
number: Int
year: String
subtitle: String
}
input RawFileDetailsInput {
name: String!
filePath: String!