Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeResolver ¶
type NodeResolver struct {
// contains filtered or unexported fields
}
NodeResolver contains the node for resolving
func (*NodeResolver) ToUser ¶
func (n *NodeResolver) ToUser() (*UserResolver, bool)
ToUser resolves the node to a user
type Query ¶
Query contains the DB so it's made available in all resolvers
func (*Query) AllUsers ¶
func (p *Query) AllUsers(ctx context.Context) ([]*UserResolver, error)
Edges gives a list of all the review edges that belong to a post [TODO] NEEDS MASSIVE CLEANUP AND micro-post Edges should maybe have the same approach
type UserResolver ¶
UserResolver contains the DB and the model for resolving
func (*UserResolver) Firstname ¶
func (u *UserResolver) Firstname() string
func (*UserResolver) ID ¶
func (u *UserResolver) ID() graphql.ID
func (*UserResolver) Lastname ¶
func (u *UserResolver) Lastname() string
Click to show internal directories.
Click to hide internal directories.