All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 3m47s
Replace hardcoded bookmarks in the frontend with a GORM-backed Bookmark model exposed through GraphQL query and admin-only create/delete mutations. Frontend groups bookmarks by category dynamically from the store. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
40 lines
1.2 KiB
GraphQL
40 lines
1.2 KiB
GraphQL
scalar Time
|
|
|
|
type Query {
|
|
users: [User!]!
|
|
user(id: ID!): User
|
|
posts: [Post!]!
|
|
post(id: ID!): Post
|
|
activities: [Activity!]!
|
|
favorites: [Favorite!]!
|
|
rowingSessions: [Rowing!]!
|
|
messages: [Message!]!
|
|
spotifyListening: SpotifyPlaying
|
|
spotifyRecent: [SpotifyRecentItem!]
|
|
giteaFeed: GiteaFeedItem
|
|
steamStatus: SteamStatus
|
|
me: User
|
|
bookmarks: [Bookmark!]!
|
|
jobApplications: [JobApplication!]!
|
|
jobApplication(id: ID!): JobApplication
|
|
}
|
|
|
|
type Mutation {
|
|
login(input: LoginInput!): AuthPayload!
|
|
logout: Boolean!
|
|
refreshToken: AuthPayload!
|
|
createPost(input: CreatePostInput!): Post!
|
|
updatePost(id: ID!, input: UpdatePostInput!): Post!
|
|
deletePost(id: ID!): Post!
|
|
createUser(input: CreateUserInput!): User!
|
|
deleteUser(id: ID!): User!
|
|
setUserAdmin(id: ID!, admin: Boolean!): User!
|
|
createFavorite(input: CreateFavoriteInput!): Favorite!
|
|
createActivity(input: CreateActivityInput!): Activity!
|
|
createJobApplication(input: CreateJobApplicationInput!): JobApplication!
|
|
updateJobApplication(id: ID!, input: UpdateJobApplicationInput!): JobApplication!
|
|
createBookmark(input: CreateBookmarkInput!): Bookmark!
|
|
deleteBookmark(id: ID!): Bookmark!
|
|
deleteJobApplication(id: ID!): Boolean!
|
|
}
|