Documentation ¶
Index ¶
- func ByID(ctx context.Context, client *ent.Client, id int) (*ent.Post, error)
- func Create(ctx context.Context, client *ent.Client, input *model.CreatePostIn) (*ent.Post, error)
- func Delete(ctx context.Context, client *ent.Client, id *int) error
- func Posts(ctx context.Context, client *ent.Client, input *model.PostsIn) (*ent.PostConnection, error)
- func PublishedPosts(ctx context.Context, client *ent.Client, input *model.PublishedPostsIn) (*ent.PostConnection, error)
- func Update(ctx context.Context, client *ent.Client, id int, input *model.UpdatePostIn) (*ent.Post, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Posts ¶
func Posts(ctx context.Context, client *ent.Client, input *model.PostsIn) (*ent.PostConnection, error)
Posts filter posts
func PublishedPosts ¶
func PublishedPosts(ctx context.Context, client *ent.Client, input *model.PublishedPostsIn) (*ent.PostConnection, error)
PublishedPosts filter published posts
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.