🍱 graphql schema stitching related changes
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user