diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-07-11 00:12:49 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-07-11 00:12:49 +0900 |
| commit | 5fd105fd8ff480afaaf9c8ccd45eb26b61018550 (patch) | |
| tree | fa6d278e5eb8a3a33f9a50088a18aa7ee8dde6d6 /backend/graphql/resolvers.go | |
| parent | ce42724c7b055f8f4d1080410e1cf358cbe99189 (diff) | |
| download | feedaka-5fd105fd8ff480afaaf9c8ccd45eb26b61018550.tar.gz feedaka-5fd105fd8ff480afaaf9c8ccd45eb26b61018550.tar.zst feedaka-5fd105fd8ff480afaaf9c8ccd45eb26b61018550.zip | |
feat(backend): add GraphQL boilerplate code
Diffstat (limited to 'backend/graphql/resolvers.go')
| -rw-r--r-- | backend/graphql/resolvers.go | 75 |
1 files changed, 75 insertions, 0 deletions
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 } |
