package
0.0.0-20240406232500-6a612345b654
Repository: https://github.com/kayprogrammer/socialnet-v4.git
Documentation: pkg.go.dev

# Functions

And groups predicates with the AND operator between them.
AuthorID applies equality check predicate on the "author_id" field.
AuthorIDEQ applies the EQ predicate on the "author_id" field.
AuthorIDIn applies the In predicate on the "author_id" field.
AuthorIDNEQ applies the NEQ predicate on the "author_id" field.
AuthorIDNotIn applies the NotIn predicate on the "author_id" field.
ByAuthorField orders the results by author field.
ByAuthorID orders the results by the author_id field.
ByComments orders the results by comments terms.
ByCommentsCount orders the results by comments count.
ByCreatedAt orders the results by the created_at field.
ByID orders the results by the id field.
ByImageField orders the results by image field.
ByImageID orders the results by the image_id field.
ByNotifications orders the results by notifications terms.
ByNotificationsCount orders the results by notifications count.
ByReactions orders the results by reactions terms.
ByReactionsCount orders the results by reactions count.
BySlug orders the results by the slug field.
ByText orders the results by the text field.
ByUpdatedAt orders the results by the updated_at field.
CreatedAt applies equality check predicate on the "created_at" field.
CreatedAtEQ applies the EQ predicate on the "created_at" field.
CreatedAtGT applies the GT predicate on the "created_at" field.
CreatedAtGTE applies the GTE predicate on the "created_at" field.
CreatedAtIn applies the In predicate on the "created_at" field.
CreatedAtLT applies the LT predicate on the "created_at" field.
CreatedAtLTE applies the LTE predicate on the "created_at" field.
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
HasAuthor applies the HasEdge predicate on the "author" edge.
HasAuthorWith applies the HasEdge predicate on the "author" edge with a given conditions (other predicates).
HasComments applies the HasEdge predicate on the "comments" edge.
HasCommentsWith applies the HasEdge predicate on the "comments" edge with a given conditions (other predicates).
HasImage applies the HasEdge predicate on the "image" edge.
HasImageWith applies the HasEdge predicate on the "image" edge with a given conditions (other predicates).
HasNotifications applies the HasEdge predicate on the "notifications" edge.
HasNotificationsWith applies the HasEdge predicate on the "notifications" edge with a given conditions (other predicates).
HasReactions applies the HasEdge predicate on the "reactions" edge.
HasReactionsWith applies the HasEdge predicate on the "reactions" edge with a given conditions (other predicates).
ID filters vertices based on their ID field.
IDEQ applies the EQ predicate on the ID field.
IDGT applies the GT predicate on the ID field.
IDGTE applies the GTE predicate on the ID field.
IDIn applies the In predicate on the ID field.
IDLT applies the LT predicate on the ID field.
IDLTE applies the LTE predicate on the ID field.
IDNEQ applies the NEQ predicate on the ID field.
IDNotIn applies the NotIn predicate on the ID field.
ImageID applies equality check predicate on the "image_id" field.
ImageIDEQ applies the EQ predicate on the "image_id" field.
ImageIDIn applies the In predicate on the "image_id" field.
ImageIDIsNil applies the IsNil predicate on the "image_id" field.
ImageIDNEQ applies the NEQ predicate on the "image_id" field.
ImageIDNotIn applies the NotIn predicate on the "image_id" field.
ImageIDNotNil applies the NotNil predicate on the "image_id" field.
Not applies the not operator on the given predicate.
Or groups predicates with the OR operator between them.
Slug applies equality check predicate on the "slug" field.
SlugContains applies the Contains predicate on the "slug" field.
SlugContainsFold applies the ContainsFold predicate on the "slug" field.
SlugEQ applies the EQ predicate on the "slug" field.
SlugEqualFold applies the EqualFold predicate on the "slug" field.
SlugGT applies the GT predicate on the "slug" field.
SlugGTE applies the GTE predicate on the "slug" field.
SlugHasPrefix applies the HasPrefix predicate on the "slug" field.
SlugHasSuffix applies the HasSuffix predicate on the "slug" field.
SlugIn applies the In predicate on the "slug" field.
SlugLT applies the LT predicate on the "slug" field.
SlugLTE applies the LTE predicate on the "slug" field.
SlugNEQ applies the NEQ predicate on the "slug" field.
SlugNotIn applies the NotIn predicate on the "slug" field.
Text applies equality check predicate on the "text" field.
TextContains applies the Contains predicate on the "text" field.
TextContainsFold applies the ContainsFold predicate on the "text" field.
TextEQ applies the EQ predicate on the "text" field.
TextEqualFold applies the EqualFold predicate on the "text" field.
TextGT applies the GT predicate on the "text" field.
TextGTE applies the GTE predicate on the "text" field.
TextHasPrefix applies the HasPrefix predicate on the "text" field.
TextHasSuffix applies the HasSuffix predicate on the "text" field.
TextIn applies the In predicate on the "text" field.
TextLT applies the LT predicate on the "text" field.
TextLTE applies the LTE predicate on the "text" field.
TextNEQ applies the NEQ predicate on the "text" field.
TextNotIn applies the NotIn predicate on the "text" field.
UpdatedAt applies equality check predicate on the "updated_at" field.
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
UpdatedAtGT applies the GT predicate on the "updated_at" field.
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
UpdatedAtIn applies the In predicate on the "updated_at" field.
UpdatedAtLT applies the LT predicate on the "updated_at" field.
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
ValidColumn reports if the column name is valid (part of the table columns).

# Constants

AuthorColumn is the table column denoting the author relation/edge.
AuthorInverseTable is the table name for the User entity.
AuthorTable is the table that holds the author relation/edge.
CommentsColumn is the table column denoting the comments relation/edge.
CommentsInverseTable is the table name for the Comment entity.
CommentsTable is the table that holds the comments relation/edge.
EdgeAuthor holds the string denoting the author edge name in mutations.
EdgeComments holds the string denoting the comments edge name in mutations.
EdgeImage holds the string denoting the image edge name in mutations.
EdgeNotifications holds the string denoting the notifications edge name in mutations.
EdgeReactions holds the string denoting the reactions edge name in mutations.
FieldAuthorID holds the string denoting the author_id field in the database.
FieldCreatedAt holds the string denoting the created_at field in the database.
FieldID holds the string denoting the id field in the database.
FieldImageID holds the string denoting the image_id field in the database.
FieldSlug holds the string denoting the slug field in the database.
FieldText holds the string denoting the text field in the database.
FieldUpdatedAt holds the string denoting the updated_at field in the database.
ImageColumn is the table column denoting the image relation/edge.
ImageInverseTable is the table name for the File entity.
ImageTable is the table that holds the image relation/edge.
Label holds the string label denoting the post type in the database.
NotificationsColumn is the table column denoting the notifications relation/edge.
NotificationsInverseTable is the table name for the Notification entity.
NotificationsTable is the table that holds the notifications relation/edge.
ReactionsColumn is the table column denoting the reactions relation/edge.
ReactionsInverseTable is the table name for the Reaction entity.
ReactionsTable is the table that holds the reactions relation/edge.
Table holds the table name of the post in the database.

# Variables

Columns holds all SQL columns for post fields.
DefaultCreatedAt holds the default value on creation for the "created_at" field.
DefaultID holds the default value on creation for the "id" field.
DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
SlugValidator is a validator for the "slug" field.
TextValidator is a validator for the "text" field.
UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.

# Type aliases

OrderOption defines the ordering options for the Post queries.