block

package
v0.1.0-alpha.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminBlock

func AdminBlock(ctx context.Context, blocker, blockee *models.User) error

AdminBlock takes 2 users and blocks those users @graphql adminBlock Mutation TODO this doesn't work with names like user, user2 because the expected ids in resolver.go aren't userID, user2ID TODO fix.

func Block

func Block(ctx context.Context, blockee *models.User) (*viewer.Viewer, error)

Block takes a user and blocks that user for the viewer mutation returns the viewer @graphql viewerBlock Mutation

func BlockMultiple

func BlockMultiple(ctx context.Context, users []*models.User) (*viewer.Viewer, error)

BlockMultiple takes a list of users and blocks those users for the viewer @graphql viewerBlockMultiple Mutation

func BlockMultipleIDs

func BlockMultipleIDs(ctx context.Context, userIDs []string) (*viewer.Viewer, error)

BlockMultipleID takes a list of user ids and blocks those users for the viewer @graphql viewerBlockMultipleIDs Mutation

func BlockParam

func BlockParam(ctx context.Context, blockee *models.User) (*viewer.Viewer, error)

BlockParam takes a user and blocks that user for the viewer mutation returns the viewer @graphql viewerBlockParam Mutation @graphqlinputtype false @graphqlparam blockee user this shows it's possible to refactor the name here in GoLand from user -> blockee but keep the graphql field the same so as to not break clients

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL