Class: Tag
January 17, 2020 · View on GitHub
@daostack/client › Globals › Tag
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:
| Name | Type |
|---|---|
idOrOpts | string | ITagStaticState |
context | Arc |
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:
| Name | Type |
|---|---|
opts | ITagStaticState |
Returns: void
state
▸ state(apolloQueryOptions: IApolloQueryOptions): Observable‹ITagState›
Defined in tag.ts:127
Parameters:
| Name | Type | Default |
|---|---|---|
apolloQueryOptions | IApolloQueryOptions | {} |
Returns: Observable‹ITagState›
Static search
▸ search(context: Arc, options: ITagQueryOptions, apolloQueryOptions: IApolloQueryOptions): Observable‹Tag[]›
Defined in tag.ts:41
Tag.search(context, options) searches for stake entities
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
context | Arc | - | an Arc instance that provides connection information |
options | ITagQueryOptions | {} | the query options, cf. ITagQueryOptions |
apolloQueryOptions | IApolloQueryOptions | {} | - |
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