Documentation ¶
Index ¶
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- type BooleanFilter
- type Comment
- type CommentCreateInput
- type CommentDeletePayload
- type CommentFilter
- type CommentLike
- type CommentLikeCreateInput
- type CommentLikeDeletePayload
- type CommentLikeFilter
- type CommentLikePayload
- type CommentLikeUpdateInput
- type CommentLikeWhere
- type CommentLikesCreateInput
- type CommentLikesDeletePayload
- type CommentLikesPayload
- type CommentLikesUpdatePayload
- type CommentPayload
- type CommentUpdateInput
- type CommentWhere
- type CommentsCreateInput
- type CommentsDeletePayload
- type CommentsPayload
- type CommentsUpdatePayload
- type ComplexityRoot
- type Config
- type DirectiveRoot
- type FloatFilter
- type Friendship
- type FriendshipCreateInput
- type FriendshipDeletePayload
- type FriendshipFilter
- type FriendshipPayload
- type FriendshipUpdateInput
- type FriendshipWhere
- type FriendshipsCreateInput
- type FriendshipsDeletePayload
- type FriendshipsPayload
- type FriendshipsUpdatePayload
- type IDFilter
- type Image
- type ImageCreateInput
- type ImageDeletePayload
- type ImageFilter
- type ImagePayload
- type ImageUpdateInput
- type ImageVariation
- type ImageVariationCreateInput
- type ImageVariationDeletePayload
- type ImageVariationFilter
- type ImageVariationPayload
- type ImageVariationUpdateInput
- type ImageVariationWhere
- type ImageVariationsCreateInput
- type ImageVariationsDeletePayload
- type ImageVariationsPayload
- type ImageVariationsUpdatePayload
- type ImageWhere
- type ImagesCreateInput
- type ImagesDeletePayload
- type ImagesPayload
- type ImagesUpdatePayload
- type IntFilter
- type Like
- type LikeCreateInput
- type LikeDeletePayload
- type LikeFilter
- type LikePayload
- type LikeUpdateInput
- type LikeWhere
- type LikesCreateInput
- type LikesDeletePayload
- type LikesPayload
- type LikesUpdatePayload
- type MutationResolver
- type Post
- type PostCreateInput
- type PostDeletePayload
- type PostFilter
- type PostPayload
- type PostUpdateInput
- type PostWhere
- type PostsCreateInput
- type PostsDeletePayload
- type PostsPayload
- type PostsUpdatePayload
- type QueryResolver
- type ResolverRoot
- type StringFilter
- type User
- type UserCreateInput
- type UserDeletePayload
- type UserFilter
- type UserPayload
- type UserUpdateInput
- type UserWhere
- type UsersCreateInput
- type UsersDeletePayload
- type UsersPayload
- type UsersUpdatePayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type BooleanFilter ¶
type Comment ¶
type Comment struct { ID string `json:"id"` Content string `json:"content"` Post *Post `json:"post"` User *User `json:"user"` CommentLikes []*CommentLike `json:"commentLikes"` }
type CommentCreateInput ¶
type CommentDeletePayload ¶
type CommentDeletePayload struct {
ID string `json:"id"`
}
type CommentFilter ¶
type CommentFilter struct { Search *string `json:"search"` Where *CommentWhere `json:"where"` }
type CommentLike ¶
type CommentLikeCreateInput ¶
type CommentLikeDeletePayload ¶
type CommentLikeDeletePayload struct {
ID string `json:"id"`
}
type CommentLikeFilter ¶
type CommentLikeFilter struct { Search *string `json:"search"` Where *CommentLikeWhere `json:"where"` }
type CommentLikePayload ¶
type CommentLikePayload struct {
CommentLike *CommentLike `json:"commentLike"`
}
type CommentLikeUpdateInput ¶
type CommentLikeWhere ¶
type CommentLikeWhere struct { ID *IDFilter `json:"id"` Comment *CommentWhere `json:"comment"` User *UserWhere `json:"user"` LikeType *StringFilter `json:"likeType"` CreatedAt *IntFilter `json:"createdAt"` Or *CommentLikeWhere `json:"or"` And *CommentLikeWhere `json:"and"` }
type CommentLikesCreateInput ¶
type CommentLikesCreateInput struct {
CommentLikes []*CommentLikeCreateInput `json:"commentLikes"`
}
type CommentLikesDeletePayload ¶
type CommentLikesDeletePayload struct {
Ids []string `json:"ids"`
}
type CommentLikesPayload ¶
type CommentLikesPayload struct {
CommentLikes []*CommentLike `json:"commentLikes"`
}
type CommentLikesUpdatePayload ¶
type CommentLikesUpdatePayload struct {
Ok bool `json:"ok"`
}
type CommentPayload ¶
type CommentPayload struct {
Comment *Comment `json:"comment"`
}
type CommentUpdateInput ¶
type CommentWhere ¶
type CommentWhere struct { ID *IDFilter `json:"id"` Content *StringFilter `json:"content"` Post *PostWhere `json:"post"` User *UserWhere `json:"user"` CommentLikes *CommentLikeWhere `json:"commentLikes"` Or *CommentWhere `json:"or"` And *CommentWhere `json:"and"` }
type CommentsCreateInput ¶
type CommentsCreateInput struct {
Comments []*CommentCreateInput `json:"comments"`
}
type CommentsDeletePayload ¶
type CommentsDeletePayload struct {
Ids []string `json:"ids"`
}
type CommentsPayload ¶
type CommentsPayload struct {
Comments []*Comment `json:"comments"`
}
type CommentsUpdatePayload ¶
type CommentsUpdatePayload struct {
Ok bool `json:"ok"`
}
type ComplexityRoot ¶
type ComplexityRoot struct { Comment struct { CommentLikes func(childComplexity int) int Content func(childComplexity int) int ID func(childComplexity int) int Post func(childComplexity int) int User func(childComplexity int) int } CommentDeletePayload struct { ID func(childComplexity int) int } CommentLike struct { Comment func(childComplexity int) int CreatedAt func(childComplexity int) int ID func(childComplexity int) int LikeType func(childComplexity int) int User func(childComplexity int) int } CommentLikeDeletePayload struct { ID func(childComplexity int) int } CommentLikePayload struct { CommentLike func(childComplexity int) int } CommentLikesDeletePayload struct { Ids func(childComplexity int) int } CommentLikesPayload struct { CommentLikes func(childComplexity int) int } CommentLikesUpdatePayload struct { Ok func(childComplexity int) int } CommentPayload struct { Comment func(childComplexity int) int } CommentsDeletePayload struct { Ids func(childComplexity int) int } CommentsPayload struct { Comments func(childComplexity int) int } CommentsUpdatePayload struct { Ok func(childComplexity int) int } Friendship struct { CreatedAt func(childComplexity int) int ID func(childComplexity int) int Users func(childComplexity int) int } FriendshipDeletePayload struct { ID func(childComplexity int) int } FriendshipPayload struct { Friendship func(childComplexity int) int } FriendshipsDeletePayload struct { Ids func(childComplexity int) int } FriendshipsPayload struct { Friendships func(childComplexity int) int } FriendshipsUpdatePayload struct { Ok func(childComplexity int) int } Image struct { ID func(childComplexity int) int ImageVariations func(childComplexity int) int OriginalURL func(childComplexity int) int Post func(childComplexity int) int Views func(childComplexity int) int } ImageDeletePayload struct { ID func(childComplexity int) int } ImagePayload struct { Image func(childComplexity int) int } ImageVariation struct { ID func(childComplexity int) int Image func(childComplexity int) int } ImageVariationDeletePayload struct { ID func(childComplexity int) int } ImageVariationPayload struct { ImageVariation func(childComplexity int) int } ImageVariationsDeletePayload struct { Ids func(childComplexity int) int } ImageVariationsPayload struct { ImageVariations func(childComplexity int) int } ImageVariationsUpdatePayload struct { Ok func(childComplexity int) int } ImagesDeletePayload struct { Ids func(childComplexity int) int } ImagesPayload struct { Images func(childComplexity int) int } ImagesUpdatePayload struct { Ok func(childComplexity int) int } Like struct { CreatedAt func(childComplexity int) int ID func(childComplexity int) int LikeType func(childComplexity int) int Post func(childComplexity int) int User func(childComplexity int) int } LikeDeletePayload struct { ID func(childComplexity int) int } LikePayload struct { Like func(childComplexity int) int } LikesDeletePayload struct { Ids func(childComplexity int) int } LikesPayload struct { Likes func(childComplexity int) int } LikesUpdatePayload struct { Ok func(childComplexity int) int } Mutation struct { CreateComment func(childComplexity int, input CommentCreateInput) int CreateCommentLike func(childComplexity int, input CommentLikeCreateInput) int CreateCommentLikes func(childComplexity int, input CommentLikesCreateInput) int CreateComments func(childComplexity int, input CommentsCreateInput) int CreateFriendship func(childComplexity int, input FriendshipCreateInput) int CreateFriendships func(childComplexity int, input FriendshipsCreateInput) int CreateImage func(childComplexity int, input ImageCreateInput) int CreateImageVariation func(childComplexity int, input ImageVariationCreateInput) int CreateImageVariations func(childComplexity int, input ImageVariationsCreateInput) int CreateImages func(childComplexity int, input ImagesCreateInput) int CreateLike func(childComplexity int, input LikeCreateInput) int CreateLikes func(childComplexity int, input LikesCreateInput) int CreatePost func(childComplexity int, input PostCreateInput) int CreatePosts func(childComplexity int, input PostsCreateInput) int CreateUser func(childComplexity int, input UserCreateInput) int CreateUsers func(childComplexity int, input UsersCreateInput) int DeleteComment func(childComplexity int, id string) int DeleteCommentLike func(childComplexity int, id string) int DeleteCommentLikes func(childComplexity int, filter *CommentLikeFilter) int DeleteComments func(childComplexity int, filter *CommentFilter) int DeleteFriendship func(childComplexity int, id string) int DeleteFriendships func(childComplexity int, filter *FriendshipFilter) int DeleteImage func(childComplexity int, id string) int DeleteImageVariation func(childComplexity int, id string) int DeleteImageVariations func(childComplexity int, filter *ImageVariationFilter) int DeleteImages func(childComplexity int, filter *ImageFilter) int DeleteLike func(childComplexity int, id string) int DeleteLikes func(childComplexity int, filter *LikeFilter) int DeletePost func(childComplexity int, id string) int DeletePosts func(childComplexity int, filter *PostFilter) int DeleteUser func(childComplexity int, id string) int DeleteUsers func(childComplexity int, filter *UserFilter) int UpdateComment func(childComplexity int, id string, input CommentUpdateInput) int UpdateCommentLike func(childComplexity int, id string, input CommentLikeUpdateInput) int UpdateCommentLikes func(childComplexity int, filter *CommentLikeFilter, input CommentLikeUpdateInput) int UpdateComments func(childComplexity int, filter *CommentFilter, input CommentUpdateInput) int UpdateFriendship func(childComplexity int, id string, input FriendshipUpdateInput) int UpdateFriendships func(childComplexity int, filter *FriendshipFilter, input FriendshipUpdateInput) int UpdateImage func(childComplexity int, id string, input ImageUpdateInput) int UpdateImageVariation func(childComplexity int, id string, input ImageVariationUpdateInput) int UpdateImageVariations func(childComplexity int, filter *ImageVariationFilter, input ImageVariationUpdateInput) int UpdateImages func(childComplexity int, filter *ImageFilter, input ImageUpdateInput) int UpdateLike func(childComplexity int, id string, input LikeUpdateInput) int UpdateLikes func(childComplexity int, filter *LikeFilter, input LikeUpdateInput) int UpdatePost func(childComplexity int, id string, input PostUpdateInput) int UpdatePosts func(childComplexity int, filter *PostFilter, input PostUpdateInput) int UpdateUser func(childComplexity int, id string, input UserUpdateInput) int UpdateUsers func(childComplexity int, filter *UserFilter, input UserUpdateInput) int } Post struct { Comments func(childComplexity int) int Content func(childComplexity int) int ID func(childComplexity int) int Images func(childComplexity int) int Likes func(childComplexity int) int User func(childComplexity int) int } PostDeletePayload struct { ID func(childComplexity int) int } PostPayload struct { Post func(childComplexity int) int } PostsDeletePayload struct { Ids func(childComplexity int) int } PostsPayload struct { Posts func(childComplexity int) int } PostsUpdatePayload struct { Ok func(childComplexity int) int } Query struct { Comment func(childComplexity int, id string) int CommentLike func(childComplexity int, id string) int CommentLikes func(childComplexity int, filter *CommentLikeFilter) int Comments func(childComplexity int, filter *CommentFilter) int Friendship func(childComplexity int, id string) int Friendships func(childComplexity int, filter *FriendshipFilter) int Image func(childComplexity int, id string) int ImageVariation func(childComplexity int, id string) int ImageVariations func(childComplexity int, filter *ImageVariationFilter) int Images func(childComplexity int, filter *ImageFilter) int Like func(childComplexity int, id string) int Likes func(childComplexity int, filter *LikeFilter) int Post func(childComplexity int, id string) int Posts func(childComplexity int, filter *PostFilter) int User func(childComplexity int, id string) int Users func(childComplexity int, filter *UserFilter) int } User struct { CommentLikes func(childComplexity int) int Comments func(childComplexity int) int Email func(childComplexity int) int FirstName func(childComplexity int) int Friendships func(childComplexity int) int ID func(childComplexity int) int LastName func(childComplexity int) int Likes func(childComplexity int) int Posts func(childComplexity int) int } UserDeletePayload struct { ID func(childComplexity int) int } UserPayload struct { User func(childComplexity int) int } UsersDeletePayload struct { Ids func(childComplexity int) int } UsersPayload struct { Users func(childComplexity int) int } UsersUpdatePayload struct { Ok func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type FloatFilter ¶
type FloatFilter struct { EqualTo *float64 `json:"equalTo"` NotEqualTo *float64 `json:"notEqualTo"` LessThan *float64 `json:"lessThan"` LessThanOrEqualTo *float64 `json:"lessThanOrEqualTo"` MoreThan *float64 `json:"moreThan"` MoreThanOrEqualTo *float64 `json:"moreThanOrEqualTo"` In []float64 `json:"in"` NotIn []float64 `json:"notIn"` }
type Friendship ¶
type FriendshipCreateInput ¶
type FriendshipCreateInput struct {
CreatedAt *int `json:"createdAt"`
}
type FriendshipDeletePayload ¶
type FriendshipDeletePayload struct {
ID string `json:"id"`
}
type FriendshipFilter ¶
type FriendshipFilter struct { Search *string `json:"search"` Where *FriendshipWhere `json:"where"` }
type FriendshipPayload ¶
type FriendshipPayload struct {
Friendship *Friendship `json:"friendship"`
}
type FriendshipUpdateInput ¶
type FriendshipUpdateInput struct {
CreatedAt *int `json:"createdAt"`
}
type FriendshipWhere ¶
type FriendshipWhere struct { ID *IDFilter `json:"id"` CreatedAt *IntFilter `json:"createdAt"` Users *UserWhere `json:"users"` Or *FriendshipWhere `json:"or"` And *FriendshipWhere `json:"and"` }
type FriendshipsCreateInput ¶
type FriendshipsCreateInput struct {
Friendships []*FriendshipCreateInput `json:"friendships"`
}
type FriendshipsDeletePayload ¶
type FriendshipsDeletePayload struct {
Ids []string `json:"ids"`
}
type FriendshipsPayload ¶
type FriendshipsPayload struct {
Friendships []*Friendship `json:"friendships"`
}
type FriendshipsUpdatePayload ¶
type FriendshipsUpdatePayload struct {
Ok bool `json:"ok"`
}
type Image ¶
type Image struct { ID string `json:"id"` Post *Post `json:"post"` Views *int `json:"views"` OriginalURL *string `json:"originalUrl"` ImageVariations []*ImageVariation `json:"imageVariations"` }
type ImageCreateInput ¶
type ImageDeletePayload ¶
type ImageDeletePayload struct {
ID string `json:"id"`
}
type ImageFilter ¶
type ImageFilter struct { Search *string `json:"search"` Where *ImageWhere `json:"where"` }
type ImagePayload ¶
type ImagePayload struct {
Image *Image `json:"image"`
}
type ImageUpdateInput ¶
type ImageVariation ¶
type ImageVariationCreateInput ¶
type ImageVariationCreateInput struct {
ImageID string `json:"imageId"`
}
type ImageVariationDeletePayload ¶
type ImageVariationDeletePayload struct {
ID string `json:"id"`
}
type ImageVariationFilter ¶
type ImageVariationFilter struct { Search *string `json:"search"` Where *ImageVariationWhere `json:"where"` }
type ImageVariationPayload ¶
type ImageVariationPayload struct {
ImageVariation *ImageVariation `json:"imageVariation"`
}
type ImageVariationUpdateInput ¶
type ImageVariationUpdateInput struct {
ImageID *string `json:"imageId"`
}
type ImageVariationWhere ¶
type ImageVariationWhere struct { ID *IDFilter `json:"id"` Image *ImageWhere `json:"image"` Or *ImageVariationWhere `json:"or"` And *ImageVariationWhere `json:"and"` }
type ImageVariationsCreateInput ¶
type ImageVariationsCreateInput struct {
ImageVariations []*ImageVariationCreateInput `json:"imageVariations"`
}
type ImageVariationsDeletePayload ¶
type ImageVariationsDeletePayload struct {
Ids []string `json:"ids"`
}
type ImageVariationsPayload ¶
type ImageVariationsPayload struct {
ImageVariations []*ImageVariation `json:"imageVariations"`
}
type ImageVariationsUpdatePayload ¶
type ImageVariationsUpdatePayload struct {
Ok bool `json:"ok"`
}
type ImageWhere ¶
type ImageWhere struct { ID *IDFilter `json:"id"` Post *PostWhere `json:"post"` Views *IntFilter `json:"views"` OriginalURL *StringFilter `json:"originalUrl"` ImageVariations *ImageVariationWhere `json:"imageVariations"` Or *ImageWhere `json:"or"` And *ImageWhere `json:"and"` }
type ImagesCreateInput ¶
type ImagesCreateInput struct {
Images []*ImageCreateInput `json:"images"`
}
type ImagesDeletePayload ¶
type ImagesDeletePayload struct {
Ids []string `json:"ids"`
}
type ImagesPayload ¶
type ImagesPayload struct {
Images []*Image `json:"images"`
}
type ImagesUpdatePayload ¶
type ImagesUpdatePayload struct {
Ok bool `json:"ok"`
}
type IntFilter ¶
type IntFilter struct { EqualTo *int `json:"equalTo"` NotEqualTo *int `json:"notEqualTo"` LessThan *int `json:"lessThan"` LessThanOrEqualTo *int `json:"lessThanOrEqualTo"` MoreThan *int `json:"moreThan"` MoreThanOrEqualTo *int `json:"moreThanOrEqualTo"` In []int `json:"in"` NotIn []int `json:"notIn"` }
type LikeCreateInput ¶
type LikeDeletePayload ¶
type LikeDeletePayload struct {
ID string `json:"id"`
}
type LikeFilter ¶
type LikePayload ¶
type LikePayload struct {
Like *Like `json:"like"`
}
type LikeUpdateInput ¶
type LikesCreateInput ¶
type LikesCreateInput struct {
Likes []*LikeCreateInput `json:"likes"`
}
type LikesDeletePayload ¶
type LikesDeletePayload struct {
Ids []string `json:"ids"`
}
type LikesPayload ¶
type LikesPayload struct {
Likes []*Like `json:"likes"`
}
type LikesUpdatePayload ¶
type LikesUpdatePayload struct {
Ok bool `json:"ok"`
}
type MutationResolver ¶
type MutationResolver interface { CreateComment(ctx context.Context, input CommentCreateInput) (*CommentPayload, error) CreateComments(ctx context.Context, input CommentsCreateInput) (*CommentsPayload, error) UpdateComment(ctx context.Context, id string, input CommentUpdateInput) (*CommentPayload, error) UpdateComments(ctx context.Context, filter *CommentFilter, input CommentUpdateInput) (*CommentsUpdatePayload, error) DeleteComment(ctx context.Context, id string) (*CommentDeletePayload, error) DeleteComments(ctx context.Context, filter *CommentFilter) (*CommentsDeletePayload, error) CreateCommentLike(ctx context.Context, input CommentLikeCreateInput) (*CommentLikePayload, error) CreateCommentLikes(ctx context.Context, input CommentLikesCreateInput) (*CommentLikesPayload, error) UpdateCommentLike(ctx context.Context, id string, input CommentLikeUpdateInput) (*CommentLikePayload, error) UpdateCommentLikes(ctx context.Context, filter *CommentLikeFilter, input CommentLikeUpdateInput) (*CommentLikesUpdatePayload, error) DeleteCommentLike(ctx context.Context, id string) (*CommentLikeDeletePayload, error) DeleteCommentLikes(ctx context.Context, filter *CommentLikeFilter) (*CommentLikesDeletePayload, error) CreateFriendship(ctx context.Context, input FriendshipCreateInput) (*FriendshipPayload, error) CreateFriendships(ctx context.Context, input FriendshipsCreateInput) (*FriendshipsPayload, error) UpdateFriendship(ctx context.Context, id string, input FriendshipUpdateInput) (*FriendshipPayload, error) UpdateFriendships(ctx context.Context, filter *FriendshipFilter, input FriendshipUpdateInput) (*FriendshipsUpdatePayload, error) DeleteFriendship(ctx context.Context, id string) (*FriendshipDeletePayload, error) DeleteFriendships(ctx context.Context, filter *FriendshipFilter) (*FriendshipsDeletePayload, error) CreateImage(ctx context.Context, input ImageCreateInput) (*ImagePayload, error) CreateImages(ctx context.Context, input ImagesCreateInput) (*ImagesPayload, error) UpdateImage(ctx context.Context, id string, input ImageUpdateInput) (*ImagePayload, error) UpdateImages(ctx context.Context, filter *ImageFilter, input ImageUpdateInput) (*ImagesUpdatePayload, error) DeleteImage(ctx context.Context, id string) (*ImageDeletePayload, error) DeleteImages(ctx context.Context, filter *ImageFilter) (*ImagesDeletePayload, error) CreateImageVariation(ctx context.Context, input ImageVariationCreateInput) (*ImageVariationPayload, error) CreateImageVariations(ctx context.Context, input ImageVariationsCreateInput) (*ImageVariationsPayload, error) UpdateImageVariation(ctx context.Context, id string, input ImageVariationUpdateInput) (*ImageVariationPayload, error) UpdateImageVariations(ctx context.Context, filter *ImageVariationFilter, input ImageVariationUpdateInput) (*ImageVariationsUpdatePayload, error) DeleteImageVariation(ctx context.Context, id string) (*ImageVariationDeletePayload, error) DeleteImageVariations(ctx context.Context, filter *ImageVariationFilter) (*ImageVariationsDeletePayload, error) CreateLike(ctx context.Context, input LikeCreateInput) (*LikePayload, error) CreateLikes(ctx context.Context, input LikesCreateInput) (*LikesPayload, error) UpdateLike(ctx context.Context, id string, input LikeUpdateInput) (*LikePayload, error) UpdateLikes(ctx context.Context, filter *LikeFilter, input LikeUpdateInput) (*LikesUpdatePayload, error) DeleteLike(ctx context.Context, id string) (*LikeDeletePayload, error) DeleteLikes(ctx context.Context, filter *LikeFilter) (*LikesDeletePayload, error) CreatePost(ctx context.Context, input PostCreateInput) (*PostPayload, error) CreatePosts(ctx context.Context, input PostsCreateInput) (*PostsPayload, error) UpdatePost(ctx context.Context, id string, input PostUpdateInput) (*PostPayload, error) UpdatePosts(ctx context.Context, filter *PostFilter, input PostUpdateInput) (*PostsUpdatePayload, error) DeletePost(ctx context.Context, id string) (*PostDeletePayload, error) DeletePosts(ctx context.Context, filter *PostFilter) (*PostsDeletePayload, error) CreateUser(ctx context.Context, input UserCreateInput) (*UserPayload, error) CreateUsers(ctx context.Context, input UsersCreateInput) (*UsersPayload, error) UpdateUser(ctx context.Context, id string, input UserUpdateInput) (*UserPayload, error) UpdateUsers(ctx context.Context, filter *UserFilter, input UserUpdateInput) (*UsersUpdatePayload, error) DeleteUser(ctx context.Context, id string) (*UserDeletePayload, error) DeleteUsers(ctx context.Context, filter *UserFilter) (*UsersDeletePayload, error) }
type PostCreateInput ¶
type PostCreateInput struct {
Content string `json:"content"`
}
type PostDeletePayload ¶
type PostDeletePayload struct {
ID string `json:"id"`
}
type PostFilter ¶
type PostPayload ¶
type PostPayload struct {
Post *Post `json:"post"`
}
type PostUpdateInput ¶
type PostUpdateInput struct {
Content *string `json:"content"`
}
type PostWhere ¶
type PostWhere struct { ID *IDFilter `json:"id"` Content *StringFilter `json:"content"` User *UserWhere `json:"user"` Comments *CommentWhere `json:"comments"` Images *ImageWhere `json:"images"` Likes *LikeWhere `json:"likes"` Or *PostWhere `json:"or"` And *PostWhere `json:"and"` }
type PostsCreateInput ¶
type PostsCreateInput struct {
Posts []*PostCreateInput `json:"posts"`
}
type PostsDeletePayload ¶
type PostsDeletePayload struct {
Ids []string `json:"ids"`
}
type PostsPayload ¶
type PostsPayload struct {
Posts []*Post `json:"posts"`
}
type PostsUpdatePayload ¶
type PostsUpdatePayload struct {
Ok bool `json:"ok"`
}
type QueryResolver ¶
type QueryResolver interface { Comment(ctx context.Context, id string) (*Comment, error) Comments(ctx context.Context, filter *CommentFilter) ([]*Comment, error) CommentLike(ctx context.Context, id string) (*CommentLike, error) CommentLikes(ctx context.Context, filter *CommentLikeFilter) ([]*CommentLike, error) Friendship(ctx context.Context, id string) (*Friendship, error) Friendships(ctx context.Context, filter *FriendshipFilter) ([]*Friendship, error) Image(ctx context.Context, id string) (*Image, error) Images(ctx context.Context, filter *ImageFilter) ([]*Image, error) ImageVariation(ctx context.Context, id string) (*ImageVariation, error) ImageVariations(ctx context.Context, filter *ImageVariationFilter) ([]*ImageVariation, error) Like(ctx context.Context, id string) (*Like, error) Likes(ctx context.Context, filter *LikeFilter) ([]*Like, error) Post(ctx context.Context, id string) (*Post, error) Posts(ctx context.Context, filter *PostFilter) ([]*Post, error) User(ctx context.Context, id string) (*User, error) Users(ctx context.Context, filter *UserFilter) ([]*User, error) }
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
type StringFilter ¶
type StringFilter struct { EqualTo *string `json:"equalTo"` NotEqualTo *string `json:"notEqualTo"` In []string `json:"in"` NotIn []string `json:"notIn"` StartWith *string `json:"startWith"` NotStartWith *string `json:"notStartWith"` EndWith *string `json:"endWith"` NotEndWith *string `json:"notEndWith"` Contain *string `json:"contain"` NotContain *string `json:"notContain"` StartWithStrict *string `json:"startWithStrict"` NotStartWithStrict *string `json:"notStartWithStrict"` EndWithStrict *string `json:"endWithStrict"` NotEndWithStrict *string `json:"notEndWithStrict"` ContainStrict *string `json:"containStrict"` NotContainStrict *string `json:"notContainStrict"` }
type User ¶
type User struct { ID string `json:"id"` FirstName string `json:"firstName"` LastName string `json:"lastName"` Email string `json:"email"` Comments []*Comment `json:"comments"` CommentLikes []*CommentLike `json:"commentLikes"` Likes []*Like `json:"likes"` Posts []*Post `json:"posts"` Friendships []*Friendship `json:"friendships"` }
type UserCreateInput ¶
type UserDeletePayload ¶
type UserDeletePayload struct {
ID string `json:"id"`
}
type UserFilter ¶
type UserPayload ¶
type UserPayload struct {
User *User `json:"user"`
}
type UserUpdateInput ¶
type UserWhere ¶
type UserWhere struct { ID *IDFilter `json:"id"` FirstName *StringFilter `json:"firstName"` LastName *StringFilter `json:"lastName"` Email *StringFilter `json:"email"` Comments *CommentWhere `json:"comments"` CommentLikes *CommentLikeWhere `json:"commentLikes"` Likes *LikeWhere `json:"likes"` Posts *PostWhere `json:"posts"` Friendships *FriendshipWhere `json:"friendships"` Or *UserWhere `json:"or"` And *UserWhere `json:"and"` }
type UsersCreateInput ¶
type UsersCreateInput struct {
Users []*UserCreateInput `json:"users"`
}
type UsersDeletePayload ¶
type UsersDeletePayload struct {
Ids []string `json:"ids"`
}
type UsersPayload ¶
type UsersPayload struct {
Users []*User `json:"users"`
}
type UsersUpdatePayload ¶
type UsersUpdatePayload struct {
Ok bool `json:"ok"`
}
Click to show internal directories.
Click to hide internal directories.