From 5fd105fd8ff480afaaf9c8ccd45eb26b61018550 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 11 Jul 2025 00:12:49 +0900 Subject: feat(backend): add GraphQL boilerplate code --- backend/graphql/resolvers.go | 75 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 backend/graphql/resolvers.go (limited to 'backend/graphql/resolvers.go') diff --git a/backend/graphql/resolvers.go b/backend/graphql/resolvers.go new file mode 100644 index 0000000..7050a43 --- /dev/null +++ b/backend/graphql/resolvers.go @@ -0,0 +1,75 @@ +package graphql + +// THIS CODE WILL BE UPDATED WITH SCHEMA CHANGES. PREVIOUS IMPLEMENTATION FOR SCHEMA CHANGES WILL BE KEPT IN THE COMMENT SECTION. IMPLEMENTATION FOR UNCHANGED SCHEMA WILL BE KEPT. + +import ( + "context" + + "undef.ninja/x/feedaka/graphql/model" +) + +type Resolver struct{} + +// AddFeed is the resolver for the addFeed field. +func (r *mutationResolver) AddFeed(ctx context.Context, url string) (*model.Feed, error) { + panic("not implemented") +} + +// RemoveFeed is the resolver for the removeFeed field. +func (r *mutationResolver) RemoveFeed(ctx context.Context, id string) (bool, error) { + panic("not implemented") +} + +// MarkArticleRead is the resolver for the markArticleRead field. +func (r *mutationResolver) MarkArticleRead(ctx context.Context, id string) (*model.Article, error) { + panic("not implemented") +} + +// MarkArticleUnread is the resolver for the markArticleUnread field. +func (r *mutationResolver) MarkArticleUnread(ctx context.Context, id string) (*model.Article, error) { + panic("not implemented") +} + +// MarkFeedRead is the resolver for the markFeedRead field. +func (r *mutationResolver) MarkFeedRead(ctx context.Context, id string) (*model.Feed, error) { + panic("not implemented") +} + +// MarkFeedUnread is the resolver for the markFeedUnread field. +func (r *mutationResolver) MarkFeedUnread(ctx context.Context, id string) (*model.Feed, error) { + panic("not implemented") +} + +// Feeds is the resolver for the feeds field. +func (r *queryResolver) Feeds(ctx context.Context) ([]*model.Feed, error) { + panic("not implemented") +} + +// UnreadArticles is the resolver for the unreadArticles field. +func (r *queryResolver) UnreadArticles(ctx context.Context) ([]*model.Article, error) { + panic("not implemented") +} + +// ReadArticles is the resolver for the readArticles field. +func (r *queryResolver) ReadArticles(ctx context.Context) ([]*model.Article, error) { + panic("not implemented") +} + +// Feed is the resolver for the feed field. +func (r *queryResolver) Feed(ctx context.Context, id string) (*model.Feed, error) { + panic("not implemented") +} + +// Article is the resolver for the article field. +func (r *queryResolver) Article(ctx context.Context, id string) (*model.Article, error) { + panic("not implemented") +} + +// Mutation returns MutationResolver implementation. +func (r *Resolver) Mutation() MutationResolver { return &mutationResolver{r} } + +// Query returns QueryResolver implementation. +func (r *Resolver) Query() QueryResolver { return &queryResolver{r} } + +type mutationResolver struct{ *Resolver } +type queryResolver struct{ *Resolver } -- cgit v1.2.3-70-g09d2