Private Readonly accessPrivate Readonly dataPrivate Readonly gPrivate Readonly graphPrivate Readonly graphPrivate Optional schemaReturns Kosmos-side configuration for this Behaviour.
Sets Kosmos-side configuration for this Behaviour.
The new configuration object.
Returns behaviour machine name.
Private addAdd bookmark mutation resolver
Rest ...__namedParameters: [schemaItem: SchemaItem<"vertex">, entityType: string, instance: BookmarkBehaviourInstanceConfig, params: [source: null, args: ItemWithId, context: KosmosUserContext<object>, info: GraphQLResolveInfo]]Private bookmarkReturns query for getting list bookmarked items
user context
schema item of bookmarked entity
Private bookmarkedBookmarked property resolver
Rest ...__namedParameters: [schemaItem: SchemaItem<"vertex">, entityType: string, instance: BookmarkBehaviourInstanceConfig, params: [source: ItemWithId, args: null, context: KosmosUserContext<object>, info: GraphQLResolveInfo]]Private bookmarksList of bookmarked items resolver
Rest ...__namedParameters: [schemaItem: SchemaItem<"vertex">, entityType: string, instance: BookmarkBehaviourInstanceConfig, params: [source: null, args: BookmarksListArgs, context: KosmosUserContext<object>, info: GraphQLResolveInfo]]Private findReturns bookmark edge between user and target entity
edge
user context
entity uuid
Private getPrivate getConstruct trait data object from different objects
Rest ...__namedParameters: [source: unknown, args: Record<string, any>, context: KosmosUserContext<object>, info: GraphQLResolveInfo]This method would be automatically before the first invocation of Behaviour for each entity type.
Behaviours may override this method, and it would be called once before each resolver.
Private removeRemove bookmark mutation resolver
Rest ...__namedParameters: [schemaItem: SchemaItem<"vertex">, entityType: string, instance: BookmarkBehaviourInstanceConfig, params: [source: null, args: ItemWithId, context: KosmosUserContext<object>, info: GraphQLResolveInfo]]Validates runtime (e.g. ContentItem) configuration for this Behaviour.
Inherited classes may either return false for generic issues or throw BehaviourRuntimeError to return a specific error message.
The instance configuration value to check.
Validates Kosmos (e.g. build time) configuration for this Behaviour.
Inherited classes may either return false for generic issues or throw BehaviourConfigError to return a specific error message.
The Kosmos configuration value to check.
Static Private addStatic Private getStatic Private removeGenerated using TypeDoc
The base Behaviour class.
Mermaid
Behaviour life cycle / configuration flow