Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
227
where.go24.6 kB
// Code generated by ent, DO NOT EDIT. package collection import ( "time" "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "github.com/Southclaws/storyden/internal/ent/predicate" "github.com/rs/xid" ) // ID filters vertices based on their ID field. func ID(id xid.ID) predicate.Collection { return predicate.Collection(sql.FieldEQ(FieldID, id)) } // IDEQ applies the EQ predicate on the ID field. func IDEQ(id xid.ID) predicate.Collection { return predicate.Collection(sql.FieldEQ(FieldID, id)) } // IDNEQ applies the NEQ predicate on the ID field. func IDNEQ(id xid.ID) predicate.Collection { return predicate.Collection(sql.FieldNEQ(FieldID, id)) } // IDIn applies the In predicate on the ID field. func IDIn(ids ...xid.ID) predicate.Collection { return predicate.Collection(sql.FieldIn(FieldID, ids...)) } // IDNotIn applies the NotIn predicate on the ID field. func IDNotIn(ids ...xid.ID) predicate.Collection { return predicate.Collection(sql.FieldNotIn(FieldID, ids...)) } // IDGT applies the GT predicate on the ID field. func IDGT(id xid.ID) predicate.Collection { return predicate.Collection(sql.FieldGT(FieldID, id)) } // IDGTE applies the GTE predicate on the ID field. func IDGTE(id xid.ID) predicate.Collection { return predicate.Collection(sql.FieldGTE(FieldID, id)) } // IDLT applies the LT predicate on the ID field. func IDLT(id xid.ID) predicate.Collection { return predicate.Collection(sql.FieldLT(FieldID, id)) } // IDLTE applies the LTE predicate on the ID field. func IDLTE(id xid.ID) predicate.Collection { return predicate.Collection(sql.FieldLTE(FieldID, id)) } // CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ. func CreatedAt(v time.Time) predicate.Collection { return predicate.Collection(sql.FieldEQ(FieldCreatedAt, v)) } // UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ. func UpdatedAt(v time.Time) predicate.Collection { return predicate.Collection(sql.FieldEQ(FieldUpdatedAt, v)) } // IndexedAt applies equality check predicate on the "indexed_at" field. It's identical to IndexedAtEQ. func IndexedAt(v time.Time) predicate.Collection { return predicate.Collection(sql.FieldEQ(FieldIndexedAt, v)) } // Name applies equality check predicate on the "name" field. It's identical to NameEQ. func Name(v string) predicate.Collection { return predicate.Collection(sql.FieldEQ(FieldName, v)) } // Slug applies equality check predicate on the "slug" field. It's identical to SlugEQ. func Slug(v string) predicate.Collection { return predicate.Collection(sql.FieldEQ(FieldSlug, v)) } // Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ. func Description(v string) predicate.Collection { return predicate.Collection(sql.FieldEQ(FieldDescription, v)) } // CoverAssetID applies equality check predicate on the "cover_asset_id" field. It's identical to CoverAssetIDEQ. func CoverAssetID(v xid.ID) predicate.Collection { return predicate.Collection(sql.FieldEQ(FieldCoverAssetID, v)) } // CreatedAtEQ applies the EQ predicate on the "created_at" field. func CreatedAtEQ(v time.Time) predicate.Collection { return predicate.Collection(sql.FieldEQ(FieldCreatedAt, v)) } // CreatedAtNEQ applies the NEQ predicate on the "created_at" field. func CreatedAtNEQ(v time.Time) predicate.Collection { return predicate.Collection(sql.FieldNEQ(FieldCreatedAt, v)) } // CreatedAtIn applies the In predicate on the "created_at" field. func CreatedAtIn(vs ...time.Time) predicate.Collection { return predicate.Collection(sql.FieldIn(FieldCreatedAt, vs...)) } // CreatedAtNotIn applies the NotIn predicate on the "created_at" field. func CreatedAtNotIn(vs ...time.Time) predicate.Collection { return predicate.Collection(sql.FieldNotIn(FieldCreatedAt, vs...)) } // CreatedAtGT applies the GT predicate on the "created_at" field. func CreatedAtGT(v time.Time) predicate.Collection { return predicate.Collection(sql.FieldGT(FieldCreatedAt, v)) } // CreatedAtGTE applies the GTE predicate on the "created_at" field. func CreatedAtGTE(v time.Time) predicate.Collection { return predicate.Collection(sql.FieldGTE(FieldCreatedAt, v)) } // CreatedAtLT applies the LT predicate on the "created_at" field. func CreatedAtLT(v time.Time) predicate.Collection { return predicate.Collection(sql.FieldLT(FieldCreatedAt, v)) } // CreatedAtLTE applies the LTE predicate on the "created_at" field. func CreatedAtLTE(v time.Time) predicate.Collection { return predicate.Collection(sql.FieldLTE(FieldCreatedAt, v)) } // UpdatedAtEQ applies the EQ predicate on the "updated_at" field. func UpdatedAtEQ(v time.Time) predicate.Collection { return predicate.Collection(sql.FieldEQ(FieldUpdatedAt, v)) } // UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. func UpdatedAtNEQ(v time.Time) predicate.Collection { return predicate.Collection(sql.FieldNEQ(FieldUpdatedAt, v)) } // UpdatedAtIn applies the In predicate on the "updated_at" field. func UpdatedAtIn(vs ...time.Time) predicate.Collection { return predicate.Collection(sql.FieldIn(FieldUpdatedAt, vs...)) } // UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. func UpdatedAtNotIn(vs ...time.Time) predicate.Collection { return predicate.Collection(sql.FieldNotIn(FieldUpdatedAt, vs...)) } // UpdatedAtGT applies the GT predicate on the "updated_at" field. func UpdatedAtGT(v time.Time) predicate.Collection { return predicate.Collection(sql.FieldGT(FieldUpdatedAt, v)) } // UpdatedAtGTE applies the GTE predicate on the "updated_at" field. func UpdatedAtGTE(v time.Time) predicate.Collection { return predicate.Collection(sql.FieldGTE(FieldUpdatedAt, v)) } // UpdatedAtLT applies the LT predicate on the "updated_at" field. func UpdatedAtLT(v time.Time) predicate.Collection { return predicate.Collection(sql.FieldLT(FieldUpdatedAt, v)) } // UpdatedAtLTE applies the LTE predicate on the "updated_at" field. func UpdatedAtLTE(v time.Time) predicate.Collection { return predicate.Collection(sql.FieldLTE(FieldUpdatedAt, v)) } // IndexedAtEQ applies the EQ predicate on the "indexed_at" field. func IndexedAtEQ(v time.Time) predicate.Collection { return predicate.Collection(sql.FieldEQ(FieldIndexedAt, v)) } // IndexedAtNEQ applies the NEQ predicate on the "indexed_at" field. func IndexedAtNEQ(v time.Time) predicate.Collection { return predicate.Collection(sql.FieldNEQ(FieldIndexedAt, v)) } // IndexedAtIn applies the In predicate on the "indexed_at" field. func IndexedAtIn(vs ...time.Time) predicate.Collection { return predicate.Collection(sql.FieldIn(FieldIndexedAt, vs...)) } // IndexedAtNotIn applies the NotIn predicate on the "indexed_at" field. func IndexedAtNotIn(vs ...time.Time) predicate.Collection { return predicate.Collection(sql.FieldNotIn(FieldIndexedAt, vs...)) } // IndexedAtGT applies the GT predicate on the "indexed_at" field. func IndexedAtGT(v time.Time) predicate.Collection { return predicate.Collection(sql.FieldGT(FieldIndexedAt, v)) } // IndexedAtGTE applies the GTE predicate on the "indexed_at" field. func IndexedAtGTE(v time.Time) predicate.Collection { return predicate.Collection(sql.FieldGTE(FieldIndexedAt, v)) } // IndexedAtLT applies the LT predicate on the "indexed_at" field. func IndexedAtLT(v time.Time) predicate.Collection { return predicate.Collection(sql.FieldLT(FieldIndexedAt, v)) } // IndexedAtLTE applies the LTE predicate on the "indexed_at" field. func IndexedAtLTE(v time.Time) predicate.Collection { return predicate.Collection(sql.FieldLTE(FieldIndexedAt, v)) } // IndexedAtIsNil applies the IsNil predicate on the "indexed_at" field. func IndexedAtIsNil() predicate.Collection { return predicate.Collection(sql.FieldIsNull(FieldIndexedAt)) } // IndexedAtNotNil applies the NotNil predicate on the "indexed_at" field. func IndexedAtNotNil() predicate.Collection { return predicate.Collection(sql.FieldNotNull(FieldIndexedAt)) } // NameEQ applies the EQ predicate on the "name" field. func NameEQ(v string) predicate.Collection { return predicate.Collection(sql.FieldEQ(FieldName, v)) } // NameNEQ applies the NEQ predicate on the "name" field. func NameNEQ(v string) predicate.Collection { return predicate.Collection(sql.FieldNEQ(FieldName, v)) } // NameIn applies the In predicate on the "name" field. func NameIn(vs ...string) predicate.Collection { return predicate.Collection(sql.FieldIn(FieldName, vs...)) } // NameNotIn applies the NotIn predicate on the "name" field. func NameNotIn(vs ...string) predicate.Collection { return predicate.Collection(sql.FieldNotIn(FieldName, vs...)) } // NameGT applies the GT predicate on the "name" field. func NameGT(v string) predicate.Collection { return predicate.Collection(sql.FieldGT(FieldName, v)) } // NameGTE applies the GTE predicate on the "name" field. func NameGTE(v string) predicate.Collection { return predicate.Collection(sql.FieldGTE(FieldName, v)) } // NameLT applies the LT predicate on the "name" field. func NameLT(v string) predicate.Collection { return predicate.Collection(sql.FieldLT(FieldName, v)) } // NameLTE applies the LTE predicate on the "name" field. func NameLTE(v string) predicate.Collection { return predicate.Collection(sql.FieldLTE(FieldName, v)) } // NameContains applies the Contains predicate on the "name" field. func NameContains(v string) predicate.Collection { return predicate.Collection(sql.FieldContains(FieldName, v)) } // NameHasPrefix applies the HasPrefix predicate on the "name" field. func NameHasPrefix(v string) predicate.Collection { return predicate.Collection(sql.FieldHasPrefix(FieldName, v)) } // NameHasSuffix applies the HasSuffix predicate on the "name" field. func NameHasSuffix(v string) predicate.Collection { return predicate.Collection(sql.FieldHasSuffix(FieldName, v)) } // NameEqualFold applies the EqualFold predicate on the "name" field. func NameEqualFold(v string) predicate.Collection { return predicate.Collection(sql.FieldEqualFold(FieldName, v)) } // NameContainsFold applies the ContainsFold predicate on the "name" field. func NameContainsFold(v string) predicate.Collection { return predicate.Collection(sql.FieldContainsFold(FieldName, v)) } // SlugEQ applies the EQ predicate on the "slug" field. func SlugEQ(v string) predicate.Collection { return predicate.Collection(sql.FieldEQ(FieldSlug, v)) } // SlugNEQ applies the NEQ predicate on the "slug" field. func SlugNEQ(v string) predicate.Collection { return predicate.Collection(sql.FieldNEQ(FieldSlug, v)) } // SlugIn applies the In predicate on the "slug" field. func SlugIn(vs ...string) predicate.Collection { return predicate.Collection(sql.FieldIn(FieldSlug, vs...)) } // SlugNotIn applies the NotIn predicate on the "slug" field. func SlugNotIn(vs ...string) predicate.Collection { return predicate.Collection(sql.FieldNotIn(FieldSlug, vs...)) } // SlugGT applies the GT predicate on the "slug" field. func SlugGT(v string) predicate.Collection { return predicate.Collection(sql.FieldGT(FieldSlug, v)) } // SlugGTE applies the GTE predicate on the "slug" field. func SlugGTE(v string) predicate.Collection { return predicate.Collection(sql.FieldGTE(FieldSlug, v)) } // SlugLT applies the LT predicate on the "slug" field. func SlugLT(v string) predicate.Collection { return predicate.Collection(sql.FieldLT(FieldSlug, v)) } // SlugLTE applies the LTE predicate on the "slug" field. func SlugLTE(v string) predicate.Collection { return predicate.Collection(sql.FieldLTE(FieldSlug, v)) } // SlugContains applies the Contains predicate on the "slug" field. func SlugContains(v string) predicate.Collection { return predicate.Collection(sql.FieldContains(FieldSlug, v)) } // SlugHasPrefix applies the HasPrefix predicate on the "slug" field. func SlugHasPrefix(v string) predicate.Collection { return predicate.Collection(sql.FieldHasPrefix(FieldSlug, v)) } // SlugHasSuffix applies the HasSuffix predicate on the "slug" field. func SlugHasSuffix(v string) predicate.Collection { return predicate.Collection(sql.FieldHasSuffix(FieldSlug, v)) } // SlugEqualFold applies the EqualFold predicate on the "slug" field. func SlugEqualFold(v string) predicate.Collection { return predicate.Collection(sql.FieldEqualFold(FieldSlug, v)) } // SlugContainsFold applies the ContainsFold predicate on the "slug" field. func SlugContainsFold(v string) predicate.Collection { return predicate.Collection(sql.FieldContainsFold(FieldSlug, v)) } // DescriptionEQ applies the EQ predicate on the "description" field. func DescriptionEQ(v string) predicate.Collection { return predicate.Collection(sql.FieldEQ(FieldDescription, v)) } // DescriptionNEQ applies the NEQ predicate on the "description" field. func DescriptionNEQ(v string) predicate.Collection { return predicate.Collection(sql.FieldNEQ(FieldDescription, v)) } // DescriptionIn applies the In predicate on the "description" field. func DescriptionIn(vs ...string) predicate.Collection { return predicate.Collection(sql.FieldIn(FieldDescription, vs...)) } // DescriptionNotIn applies the NotIn predicate on the "description" field. func DescriptionNotIn(vs ...string) predicate.Collection { return predicate.Collection(sql.FieldNotIn(FieldDescription, vs...)) } // DescriptionGT applies the GT predicate on the "description" field. func DescriptionGT(v string) predicate.Collection { return predicate.Collection(sql.FieldGT(FieldDescription, v)) } // DescriptionGTE applies the GTE predicate on the "description" field. func DescriptionGTE(v string) predicate.Collection { return predicate.Collection(sql.FieldGTE(FieldDescription, v)) } // DescriptionLT applies the LT predicate on the "description" field. func DescriptionLT(v string) predicate.Collection { return predicate.Collection(sql.FieldLT(FieldDescription, v)) } // DescriptionLTE applies the LTE predicate on the "description" field. func DescriptionLTE(v string) predicate.Collection { return predicate.Collection(sql.FieldLTE(FieldDescription, v)) } // DescriptionContains applies the Contains predicate on the "description" field. func DescriptionContains(v string) predicate.Collection { return predicate.Collection(sql.FieldContains(FieldDescription, v)) } // DescriptionHasPrefix applies the HasPrefix predicate on the "description" field. func DescriptionHasPrefix(v string) predicate.Collection { return predicate.Collection(sql.FieldHasPrefix(FieldDescription, v)) } // DescriptionHasSuffix applies the HasSuffix predicate on the "description" field. func DescriptionHasSuffix(v string) predicate.Collection { return predicate.Collection(sql.FieldHasSuffix(FieldDescription, v)) } // DescriptionIsNil applies the IsNil predicate on the "description" field. func DescriptionIsNil() predicate.Collection { return predicate.Collection(sql.FieldIsNull(FieldDescription)) } // DescriptionNotNil applies the NotNil predicate on the "description" field. func DescriptionNotNil() predicate.Collection { return predicate.Collection(sql.FieldNotNull(FieldDescription)) } // DescriptionEqualFold applies the EqualFold predicate on the "description" field. func DescriptionEqualFold(v string) predicate.Collection { return predicate.Collection(sql.FieldEqualFold(FieldDescription, v)) } // DescriptionContainsFold applies the ContainsFold predicate on the "description" field. func DescriptionContainsFold(v string) predicate.Collection { return predicate.Collection(sql.FieldContainsFold(FieldDescription, v)) } // CoverAssetIDEQ applies the EQ predicate on the "cover_asset_id" field. func CoverAssetIDEQ(v xid.ID) predicate.Collection { return predicate.Collection(sql.FieldEQ(FieldCoverAssetID, v)) } // CoverAssetIDNEQ applies the NEQ predicate on the "cover_asset_id" field. func CoverAssetIDNEQ(v xid.ID) predicate.Collection { return predicate.Collection(sql.FieldNEQ(FieldCoverAssetID, v)) } // CoverAssetIDIn applies the In predicate on the "cover_asset_id" field. func CoverAssetIDIn(vs ...xid.ID) predicate.Collection { return predicate.Collection(sql.FieldIn(FieldCoverAssetID, vs...)) } // CoverAssetIDNotIn applies the NotIn predicate on the "cover_asset_id" field. func CoverAssetIDNotIn(vs ...xid.ID) predicate.Collection { return predicate.Collection(sql.FieldNotIn(FieldCoverAssetID, vs...)) } // CoverAssetIDGT applies the GT predicate on the "cover_asset_id" field. func CoverAssetIDGT(v xid.ID) predicate.Collection { return predicate.Collection(sql.FieldGT(FieldCoverAssetID, v)) } // CoverAssetIDGTE applies the GTE predicate on the "cover_asset_id" field. func CoverAssetIDGTE(v xid.ID) predicate.Collection { return predicate.Collection(sql.FieldGTE(FieldCoverAssetID, v)) } // CoverAssetIDLT applies the LT predicate on the "cover_asset_id" field. func CoverAssetIDLT(v xid.ID) predicate.Collection { return predicate.Collection(sql.FieldLT(FieldCoverAssetID, v)) } // CoverAssetIDLTE applies the LTE predicate on the "cover_asset_id" field. func CoverAssetIDLTE(v xid.ID) predicate.Collection { return predicate.Collection(sql.FieldLTE(FieldCoverAssetID, v)) } // CoverAssetIDContains applies the Contains predicate on the "cover_asset_id" field. func CoverAssetIDContains(v xid.ID) predicate.Collection { vc := v.String() return predicate.Collection(sql.FieldContains(FieldCoverAssetID, vc)) } // CoverAssetIDHasPrefix applies the HasPrefix predicate on the "cover_asset_id" field. func CoverAssetIDHasPrefix(v xid.ID) predicate.Collection { vc := v.String() return predicate.Collection(sql.FieldHasPrefix(FieldCoverAssetID, vc)) } // CoverAssetIDHasSuffix applies the HasSuffix predicate on the "cover_asset_id" field. func CoverAssetIDHasSuffix(v xid.ID) predicate.Collection { vc := v.String() return predicate.Collection(sql.FieldHasSuffix(FieldCoverAssetID, vc)) } // CoverAssetIDIsNil applies the IsNil predicate on the "cover_asset_id" field. func CoverAssetIDIsNil() predicate.Collection { return predicate.Collection(sql.FieldIsNull(FieldCoverAssetID)) } // CoverAssetIDNotNil applies the NotNil predicate on the "cover_asset_id" field. func CoverAssetIDNotNil() predicate.Collection { return predicate.Collection(sql.FieldNotNull(FieldCoverAssetID)) } // CoverAssetIDEqualFold applies the EqualFold predicate on the "cover_asset_id" field. func CoverAssetIDEqualFold(v xid.ID) predicate.Collection { vc := v.String() return predicate.Collection(sql.FieldEqualFold(FieldCoverAssetID, vc)) } // CoverAssetIDContainsFold applies the ContainsFold predicate on the "cover_asset_id" field. func CoverAssetIDContainsFold(v xid.ID) predicate.Collection { vc := v.String() return predicate.Collection(sql.FieldContainsFold(FieldCoverAssetID, vc)) } // VisibilityEQ applies the EQ predicate on the "visibility" field. func VisibilityEQ(v Visibility) predicate.Collection { return predicate.Collection(sql.FieldEQ(FieldVisibility, v)) } // VisibilityNEQ applies the NEQ predicate on the "visibility" field. func VisibilityNEQ(v Visibility) predicate.Collection { return predicate.Collection(sql.FieldNEQ(FieldVisibility, v)) } // VisibilityIn applies the In predicate on the "visibility" field. func VisibilityIn(vs ...Visibility) predicate.Collection { return predicate.Collection(sql.FieldIn(FieldVisibility, vs...)) } // VisibilityNotIn applies the NotIn predicate on the "visibility" field. func VisibilityNotIn(vs ...Visibility) predicate.Collection { return predicate.Collection(sql.FieldNotIn(FieldVisibility, vs...)) } // HasOwner applies the HasEdge predicate on the "owner" edge. func HasOwner() predicate.Collection { return predicate.Collection(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2O, true, OwnerTable, OwnerColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates). func HasOwnerWith(preds ...predicate.Account) predicate.Collection { return predicate.Collection(func(s *sql.Selector) { step := newOwnerStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasCoverImage applies the HasEdge predicate on the "cover_image" edge. func HasCoverImage() predicate.Collection { return predicate.Collection(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2O, false, CoverImageTable, CoverImageColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasCoverImageWith applies the HasEdge predicate on the "cover_image" edge with a given conditions (other predicates). func HasCoverImageWith(preds ...predicate.Asset) predicate.Collection { return predicate.Collection(func(s *sql.Selector) { step := newCoverImageStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasPosts applies the HasEdge predicate on the "posts" edge. func HasPosts() predicate.Collection { return predicate.Collection(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2M, false, PostsTable, PostsPrimaryKey...), ) sqlgraph.HasNeighbors(s, step) }) } // HasPostsWith applies the HasEdge predicate on the "posts" edge with a given conditions (other predicates). func HasPostsWith(preds ...predicate.Post) predicate.Collection { return predicate.Collection(func(s *sql.Selector) { step := newPostsStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasNodes applies the HasEdge predicate on the "nodes" edge. func HasNodes() predicate.Collection { return predicate.Collection(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.M2M, false, NodesTable, NodesPrimaryKey...), ) sqlgraph.HasNeighbors(s, step) }) } // HasNodesWith applies the HasEdge predicate on the "nodes" edge with a given conditions (other predicates). func HasNodesWith(preds ...predicate.Node) predicate.Collection { return predicate.Collection(func(s *sql.Selector) { step := newNodesStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasCollectionPosts applies the HasEdge predicate on the "collection_posts" edge. func HasCollectionPosts() predicate.Collection { return predicate.Collection(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.O2M, true, CollectionPostsTable, CollectionPostsColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasCollectionPostsWith applies the HasEdge predicate on the "collection_posts" edge with a given conditions (other predicates). func HasCollectionPostsWith(preds ...predicate.CollectionPost) predicate.Collection { return predicate.Collection(func(s *sql.Selector) { step := newCollectionPostsStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // HasCollectionNodes applies the HasEdge predicate on the "collection_nodes" edge. func HasCollectionNodes() predicate.Collection { return predicate.Collection(func(s *sql.Selector) { step := sqlgraph.NewStep( sqlgraph.From(Table, FieldID), sqlgraph.Edge(sqlgraph.O2M, true, CollectionNodesTable, CollectionNodesColumn), ) sqlgraph.HasNeighbors(s, step) }) } // HasCollectionNodesWith applies the HasEdge predicate on the "collection_nodes" edge with a given conditions (other predicates). func HasCollectionNodesWith(preds ...predicate.CollectionNode) predicate.Collection { return predicate.Collection(func(s *sql.Selector) { step := newCollectionNodesStep() sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { for _, p := range preds { p(s) } }) }) } // And groups predicates with the AND operator between them. func And(predicates ...predicate.Collection) predicate.Collection { return predicate.Collection(sql.AndPredicates(predicates...)) } // Or groups predicates with the OR operator between them. func Or(predicates ...predicate.Collection) predicate.Collection { return predicate.Collection(sql.OrPredicates(predicates...)) } // Not applies the not operator on the given predicate. func Not(p predicate.Collection) predicate.Collection { return predicate.Collection(sql.NotPredicates(p)) }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Southclaws/storyden'

If you have feedback or need assistance with the MCP directory API, please join our Discord server