Documentation ¶
Index ¶
- Variables
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- type BooleanFilter
- type Comment
- type CommentConnection
- type CommentCreateInput
- type CommentDeletePayload
- type CommentEdge
- type CommentFilter
- type CommentLike
- type CommentLikeConnection
- type CommentLikeCreateInput
- type CommentLikeDeletePayload
- type CommentLikeEdge
- type CommentLikeFilter
- type CommentLikeOrdering
- type CommentLikePayload
- type CommentLikeSort
- type CommentLikeUpdateInput
- type CommentLikeWhere
- type CommentLikesDeletePayload
- type CommentLikesUpdatePayload
- type CommentOrdering
- type CommentPayload
- type CommentSort
- type CommentUpdateInput
- type CommentWhere
- type CommentsDeletePayload
- type CommentsUpdatePayload
- type ComplexityRoot
- type Config
- type DirectiveRoot
- type FloatFilter
- type Friendship
- type FriendshipConnection
- type FriendshipCreateInput
- type FriendshipDeletePayload
- type FriendshipEdge
- type FriendshipFilter
- type FriendshipOrdering
- type FriendshipPayload
- type FriendshipSort
- type FriendshipUpdateInput
- type FriendshipWhere
- type FriendshipsDeletePayload
- type FriendshipsUpdatePayload
- type IDFilter
- type Image
- type ImageConnection
- type ImageCreateInput
- type ImageDeletePayload
- type ImageEdge
- type ImageFilter
- type ImageOrdering
- type ImagePayload
- type ImageSort
- type ImageUpdateInput
- type ImageVariation
- type ImageVariationConnection
- type ImageVariationCreateInput
- type ImageVariationDeletePayload
- type ImageVariationEdge
- type ImageVariationFilter
- type ImageVariationOrdering
- type ImageVariationPayload
- type ImageVariationSort
- type ImageVariationUpdateInput
- type ImageVariationWhere
- type ImageVariationsDeletePayload
- type ImageVariationsUpdatePayload
- type ImageWhere
- type ImagesDeletePayload
- type ImagesUpdatePayload
- type IntFilter
- type Like
- type LikeConnection
- type LikeCreateInput
- type LikeDeletePayload
- type LikeEdge
- type LikeFilter
- type LikeOrdering
- type LikePayload
- type LikeSort
- type LikeUpdateInput
- type LikeWhere
- type LikesDeletePayload
- type LikesUpdatePayload
- type MutationResolver
- type Node
- type PageInfo
- type Post
- type PostConnection
- type PostCreateInput
- type PostDeletePayload
- type PostEdge
- type PostFilter
- type PostOrdering
- type PostPayload
- type PostSort
- type PostUpdateInput
- type PostWhere
- type PostsDeletePayload
- type PostsUpdatePayload
- type QueryResolver
- type ResolverRoot
- type StringFilter
- type User
- type UserConnection
- type UserCreateInput
- type UserDeletePayload
- type UserEdge
- type UserFilter
- type UserOrdering
- type UserPayload
- type UserSort
- type UserUpdateInput
- type UserWhere
- type UsersDeletePayload
- type UsersUpdatePayload
Constants ¶
This section is empty.
Variables ¶
View Source
var AllCommentLikeSort = []CommentLikeSort{ CommentLikeSortID, CommentLikeSortLikeType, CommentLikeSortCreatedAt, }
View Source
var AllCommentSort = []CommentSort{ CommentSortID, CommentSortContent, }
View Source
var AllFriendshipSort = []FriendshipSort{ FriendshipSortID, FriendshipSortCreatedAt, }
View Source
var AllImageSort = []ImageSort{ ImageSortID, ImageSortViews, ImageSortOriginalURL, }
View Source
var AllImageVariationSort = []ImageVariationSort{ ImageVariationSortID, }
View Source
var AllLikeSort = []LikeSort{ LikeSortID, LikeSortLikeType, LikeSortCreatedAt, }
View Source
var AllPostSort = []PostSort{ PostSortID, PostSortContent, }
View Source
var AllUserSort = []UserSort{ UserSortID, UserSortFirstName, UserSortLastName, UserSortEmail, UserSortPassword, }
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 CommentConnection ¶
type CommentConnection struct { Edges []*CommentEdge `json:"edges"` PageInfo *PageInfo `json:"pageInfo"` }
type CommentCreateInput ¶
type CommentDeletePayload ¶
type CommentDeletePayload struct {
ID string `json:"id"`
}
type CommentEdge ¶
type CommentFilter ¶
type CommentFilter struct { Search *string `json:"search"` Where *CommentWhere `json:"where"` }
type CommentLike ¶
type CommentLike struct { ID string `json:"id"` Comment *Comment `json:"comment"` User *User `json:"user"` LikeType string `json:"likeType"` CreatedAt *int `json:"createdAt"` }
func (CommentLike) IsNode ¶
func (CommentLike) IsNode()
type CommentLikeConnection ¶
type CommentLikeConnection struct { Edges []*CommentLikeEdge `json:"edges"` PageInfo *PageInfo `json:"pageInfo"` }
type CommentLikeCreateInput ¶
type CommentLikeDeletePayload ¶
type CommentLikeDeletePayload struct {
ID string `json:"id"`
}
type CommentLikeEdge ¶
type CommentLikeEdge struct { Cursor string `json:"cursor"` Node *CommentLike `json:"node"` }
type CommentLikeFilter ¶
type CommentLikeFilter struct { Search *string `json:"search"` Where *CommentLikeWhere `json:"where"` }
type CommentLikeOrdering ¶
type CommentLikeOrdering struct { Sort CommentLikeSort `json:"sort"` Direction boilergql.SortDirection `json:"direction"` }
type CommentLikePayload ¶
type CommentLikePayload struct {
CommentLike *CommentLike `json:"commentLike"`
}
type CommentLikeSort ¶
type CommentLikeSort string
const ( CommentLikeSortID CommentLikeSort = "ID" CommentLikeSortLikeType CommentLikeSort = "LIKE_TYPE" CommentLikeSortCreatedAt CommentLikeSort = "CREATED_AT" )
func (CommentLikeSort) IsValid ¶
func (e CommentLikeSort) IsValid() bool
func (CommentLikeSort) MarshalGQL ¶
func (e CommentLikeSort) MarshalGQL(w io.Writer)
func (CommentLikeSort) String ¶
func (e CommentLikeSort) String() string
func (*CommentLikeSort) UnmarshalGQL ¶
func (e *CommentLikeSort) UnmarshalGQL(v interface{}) error
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 CommentLikesDeletePayload ¶
type CommentLikesDeletePayload struct {
Ids []string `json:"ids"`
}
type CommentLikesUpdatePayload ¶
type CommentLikesUpdatePayload struct {
Ok bool `json:"ok"`
}
type CommentOrdering ¶
type CommentOrdering struct { Sort CommentSort `json:"sort"` Direction boilergql.SortDirection `json:"direction"` }
type CommentPayload ¶
type CommentPayload struct {
Comment *Comment `json:"comment"`
}
type CommentSort ¶
type CommentSort string
const ( CommentSortID CommentSort = "ID" CommentSortContent CommentSort = "CONTENT" )
func (CommentSort) IsValid ¶
func (e CommentSort) IsValid() bool
func (CommentSort) MarshalGQL ¶
func (e CommentSort) MarshalGQL(w io.Writer)
func (CommentSort) String ¶
func (e CommentSort) String() string
func (*CommentSort) UnmarshalGQL ¶
func (e *CommentSort) UnmarshalGQL(v interface{}) error
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 CommentsDeletePayload ¶
type CommentsDeletePayload struct {
Ids []string `json:"ids"`
}
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 } CommentConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } CommentDeletePayload struct { ID func(childComplexity int) int } CommentEdge struct { Cursor func(childComplexity int) int Node 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 } CommentLikeConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } CommentLikeDeletePayload struct { ID func(childComplexity int) int } CommentLikeEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } CommentLikePayload struct { CommentLike func(childComplexity int) int } CommentLikesDeletePayload struct { Ids 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 } CommentsUpdatePayload struct { Ok func(childComplexity int) int } Friendship struct { CreatedAt func(childComplexity int) int ID func(childComplexity int) int Users func(childComplexity int) int } FriendshipConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } FriendshipDeletePayload struct { ID func(childComplexity int) int } FriendshipEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } FriendshipPayload struct { Friendship func(childComplexity int) int } FriendshipsDeletePayload struct { Ids 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 } ImageConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } ImageDeletePayload struct { ID func(childComplexity int) int } ImageEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } ImagePayload struct { Image func(childComplexity int) int } ImageVariation struct { ID func(childComplexity int) int Image func(childComplexity int) int } ImageVariationConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } ImageVariationDeletePayload struct { ID func(childComplexity int) int } ImageVariationEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } ImageVariationPayload struct { ImageVariation func(childComplexity int) int } ImageVariationsDeletePayload struct { Ids func(childComplexity int) int } ImageVariationsUpdatePayload struct { Ok func(childComplexity int) int } ImagesDeletePayload struct { Ids 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 } LikeConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } LikeDeletePayload struct { ID func(childComplexity int) int } LikeEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } LikePayload struct { Like func(childComplexity int) int } LikesDeletePayload struct { Ids 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 CreateFriendship func(childComplexity int, input FriendshipCreateInput) int CreateImage func(childComplexity int, input ImageCreateInput) int CreateImageVariation func(childComplexity int, input ImageVariationCreateInput) int CreateLike func(childComplexity int, input LikeCreateInput) int CreatePost func(childComplexity int, input PostCreateInput) int CreateUser func(childComplexity int, input UserCreateInput) 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 } PageInfo struct { EndCursor func(childComplexity int) int HasNextPage func(childComplexity int) int HasPreviousPage func(childComplexity int) int StartCursor func(childComplexity int) 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 } PostConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } PostDeletePayload struct { ID func(childComplexity int) int } PostEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } PostPayload struct { Post func(childComplexity int) int } PostsDeletePayload struct { Ids 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, first int, after *string, ordering []*CommentLikeOrdering, filter *CommentLikeFilter) int Comments func(childComplexity int, first int, after *string, ordering []*CommentOrdering, filter *CommentFilter) int Friendship func(childComplexity int, id string) int Friendships func(childComplexity int, first int, after *string, ordering []*FriendshipOrdering, filter *FriendshipFilter) int Image func(childComplexity int, id string) int ImageVariation func(childComplexity int, id string) int ImageVariations func(childComplexity int, first int, after *string, ordering []*ImageVariationOrdering, filter *ImageVariationFilter) int Images func(childComplexity int, first int, after *string, ordering []*ImageOrdering, filter *ImageFilter) int Like func(childComplexity int, id string) int Likes func(childComplexity int, first int, after *string, ordering []*LikeOrdering, filter *LikeFilter) int Node func(childComplexity int, id string) int Post func(childComplexity int, id string) int Posts func(childComplexity int, first int, after *string, ordering []*PostOrdering, filter *PostFilter) int User func(childComplexity int, id string) int Users func(childComplexity int, first int, after *string, ordering []*UserOrdering, 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 Password func(childComplexity int) int Posts func(childComplexity int) int } UserConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int } UserDeletePayload struct { ID func(childComplexity int) int } UserEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } UserPayload struct { User func(childComplexity int) int } UsersDeletePayload struct { Ids 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 Friendship struct { ID string `json:"id"` CreatedAt *int `json:"createdAt"` Users []*User `json:"users"` }
func (Friendship) IsNode ¶
func (Friendship) IsNode()
type FriendshipConnection ¶
type FriendshipConnection struct { Edges []*FriendshipEdge `json:"edges"` PageInfo *PageInfo `json:"pageInfo"` }
type FriendshipCreateInput ¶
type FriendshipCreateInput struct {
CreatedAt *int `json:"createdAt"`
}
type FriendshipDeletePayload ¶
type FriendshipDeletePayload struct {
ID string `json:"id"`
}
type FriendshipEdge ¶
type FriendshipEdge struct { Cursor string `json:"cursor"` Node *Friendship `json:"node"` }
type FriendshipFilter ¶
type FriendshipFilter struct { Search *string `json:"search"` Where *FriendshipWhere `json:"where"` }
type FriendshipOrdering ¶
type FriendshipOrdering struct { Sort FriendshipSort `json:"sort"` Direction boilergql.SortDirection `json:"direction"` }
type FriendshipPayload ¶
type FriendshipPayload struct {
Friendship *Friendship `json:"friendship"`
}
type FriendshipSort ¶
type FriendshipSort string
const ( FriendshipSortID FriendshipSort = "ID" FriendshipSortCreatedAt FriendshipSort = "CREATED_AT" )
func (FriendshipSort) IsValid ¶
func (e FriendshipSort) IsValid() bool
func (FriendshipSort) MarshalGQL ¶
func (e FriendshipSort) MarshalGQL(w io.Writer)
func (FriendshipSort) String ¶
func (e FriendshipSort) String() string
func (*FriendshipSort) UnmarshalGQL ¶
func (e *FriendshipSort) UnmarshalGQL(v interface{}) error
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 FriendshipsDeletePayload ¶
type FriendshipsDeletePayload struct {
Ids []string `json:"ids"`
}
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 ImageConnection ¶
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 ImageOrdering ¶
type ImageOrdering struct { Sort ImageSort `json:"sort"` Direction boilergql.SortDirection `json:"direction"` }
type ImagePayload ¶
type ImagePayload struct {
Image *Image `json:"image"`
}
type ImageSort ¶
type ImageSort string
func (ImageSort) MarshalGQL ¶
func (*ImageSort) UnmarshalGQL ¶
type ImageUpdateInput ¶
type ImageVariation ¶
func (ImageVariation) IsNode ¶
func (ImageVariation) IsNode()
type ImageVariationConnection ¶
type ImageVariationConnection struct { Edges []*ImageVariationEdge `json:"edges"` PageInfo *PageInfo `json:"pageInfo"` }
type ImageVariationCreateInput ¶
type ImageVariationCreateInput struct {
ImageID string `json:"imageId"`
}
type ImageVariationDeletePayload ¶
type ImageVariationDeletePayload struct {
ID string `json:"id"`
}
type ImageVariationEdge ¶
type ImageVariationEdge struct { Cursor string `json:"cursor"` Node *ImageVariation `json:"node"` }
type ImageVariationFilter ¶
type ImageVariationFilter struct { Search *string `json:"search"` Where *ImageVariationWhere `json:"where"` }
type ImageVariationOrdering ¶
type ImageVariationOrdering struct { Sort ImageVariationSort `json:"sort"` Direction boilergql.SortDirection `json:"direction"` }
type ImageVariationPayload ¶
type ImageVariationPayload struct {
ImageVariation *ImageVariation `json:"imageVariation"`
}
type ImageVariationSort ¶
type ImageVariationSort string
const (
ImageVariationSortID ImageVariationSort = "ID"
)
func (ImageVariationSort) IsValid ¶
func (e ImageVariationSort) IsValid() bool
func (ImageVariationSort) MarshalGQL ¶
func (e ImageVariationSort) MarshalGQL(w io.Writer)
func (ImageVariationSort) String ¶
func (e ImageVariationSort) String() string
func (*ImageVariationSort) UnmarshalGQL ¶
func (e *ImageVariationSort) UnmarshalGQL(v interface{}) error
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 ImageVariationsDeletePayload ¶
type ImageVariationsDeletePayload struct {
Ids []string `json:"ids"`
}
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 ImagesDeletePayload ¶
type ImagesDeletePayload struct {
Ids []string `json:"ids"`
}
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 Like ¶
type LikeConnection ¶
type LikeCreateInput ¶
type LikeDeletePayload ¶
type LikeDeletePayload struct {
ID string `json:"id"`
}
type LikeFilter ¶
type LikeOrdering ¶
type LikeOrdering struct { Sort LikeSort `json:"sort"` Direction boilergql.SortDirection `json:"direction"` }
type LikePayload ¶
type LikePayload struct {
Like *Like `json:"like"`
}
type LikeUpdateInput ¶
type LikesDeletePayload ¶
type LikesDeletePayload struct {
Ids []string `json:"ids"`
}
type LikesUpdatePayload ¶
type LikesUpdatePayload struct {
Ok bool `json:"ok"`
}
type MutationResolver ¶
type MutationResolver interface { CreateComment(ctx context.Context, input CommentCreateInput) (*CommentPayload, 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) 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) 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) 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) 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) 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) 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) 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 Post ¶
type PostConnection ¶
type PostCreateInput ¶
type PostCreateInput struct {
Content string `json:"content"`
}
type PostDeletePayload ¶
type PostDeletePayload struct {
ID string `json:"id"`
}
type PostFilter ¶
type PostOrdering ¶
type PostOrdering struct { Sort PostSort `json:"sort"` Direction boilergql.SortDirection `json:"direction"` }
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 PostsDeletePayload ¶
type PostsDeletePayload struct {
Ids []string `json:"ids"`
}
type PostsUpdatePayload ¶
type PostsUpdatePayload struct {
Ok bool `json:"ok"`
}
type QueryResolver ¶
type QueryResolver interface { Node(ctx context.Context, id string) (Node, error) Comment(ctx context.Context, id string) (*Comment, error) Comments(ctx context.Context, first int, after *string, ordering []*CommentOrdering, filter *CommentFilter) (*CommentConnection, error) CommentLike(ctx context.Context, id string) (*CommentLike, error) CommentLikes(ctx context.Context, first int, after *string, ordering []*CommentLikeOrdering, filter *CommentLikeFilter) (*CommentLikeConnection, error) Friendship(ctx context.Context, id string) (*Friendship, error) Friendships(ctx context.Context, first int, after *string, ordering []*FriendshipOrdering, filter *FriendshipFilter) (*FriendshipConnection, error) Image(ctx context.Context, id string) (*Image, error) Images(ctx context.Context, first int, after *string, ordering []*ImageOrdering, filter *ImageFilter) (*ImageConnection, error) ImageVariation(ctx context.Context, id string) (*ImageVariation, error) ImageVariations(ctx context.Context, first int, after *string, ordering []*ImageVariationOrdering, filter *ImageVariationFilter) (*ImageVariationConnection, error) Like(ctx context.Context, id string) (*Like, error) Likes(ctx context.Context, first int, after *string, ordering []*LikeOrdering, filter *LikeFilter) (*LikeConnection, error) Post(ctx context.Context, id string) (*Post, error) Posts(ctx context.Context, first int, after *string, ordering []*PostOrdering, filter *PostFilter) (*PostConnection, error) User(ctx context.Context, id string) (*User, error) Users(ctx context.Context, first int, after *string, ordering []*UserOrdering, filter *UserFilter) (*UserConnection, 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"` Password string `json:"password"` Comments []*Comment `json:"comments"` CommentLikes []*CommentLike `json:"commentLikes"` Likes []*Like `json:"likes"` Posts []*Post `json:"posts"` Friendships []*Friendship `json:"friendships"` }
type UserConnection ¶
type UserCreateInput ¶
type UserDeletePayload ¶
type UserDeletePayload struct {
ID string `json:"id"`
}
type UserFilter ¶
type UserOrdering ¶
type UserOrdering struct { Sort UserSort `json:"sort"` Direction boilergql.SortDirection `json:"direction"` }
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"` Password *StringFilter `json:"password"` 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 UsersDeletePayload ¶
type UsersDeletePayload struct {
Ids []string `json:"ids"`
}
type UsersUpdatePayload ¶
type UsersUpdatePayload struct {
Ok bool `json:"ok"`
}
Click to show internal directories.
Click to hide internal directories.