Class: Tag

January 17, 2020 · View on GitHub

@daostack/clientGlobalsTag

Class: Tag

Hierarchy

  • Tag

Implements

Index

Constructors

Properties

Methods

Object literals

Constructors

constructor

+ new Tag(idOrOpts: string | ITagStaticState, context: Arc): Tag

Defined in tag.ts:113

Parameters:

NameType
idOrOptsstring | ITagStaticState
contextArc

Returns: Tag

Properties

context

context: Arc

Defined in tag.ts:117


id

id: string | undefined

Defined in tag.ts:112


staticState

staticState: ITagStaticState | undefined

Defined in tag.ts:113

Methods

fetchStaticState

fetchStaticState(): Promise‹ITagStaticState

Defined in tag.ts:158

Returns: Promise‹ITagStaticState


setStaticState

setStaticState(opts: ITagStaticState): void

Defined in tag.ts:154

Parameters:

NameType
optsITagStaticState

Returns: void


state

state(apolloQueryOptions: IApolloQueryOptions): Observable‹ITagState

Defined in tag.ts:127

Parameters:

NameTypeDefault
apolloQueryOptionsIApolloQueryOptions{}

Returns: Observable‹ITagState


search(context: Arc, options: ITagQueryOptions, apolloQueryOptions: IApolloQueryOptions): Observable‹Tag[]›

Defined in tag.ts:41

Tag.search(context, options) searches for stake entities

Parameters:

NameTypeDefaultDescription
contextArc-an Arc instance that provides connection information
optionsITagQueryOptions{}the query options, cf. ITagQueryOptions
apolloQueryOptionsIApolloQueryOptions{}-

Returns: Observable‹Tag[]›

an observable of Tag objects

Object literals

Static fragments

fragments: object

Defined in tag.ts:27

TagFields

TagFields: any = gqlfragment TagFields on Tag { id numberOfProposals proposals { id } }

Defined in tag.ts:28