@daostack/client › Globals › Tag
- Tag
+ new Tag(idOrOpts
: string | ITagStaticState, context
: Arc): Tag
Defined in tag.ts:113
Parameters:
Name | Type |
---|---|
idOrOpts |
string | ITagStaticState |
context |
Arc |
Returns: Tag
• context: Arc
Defined in tag.ts:117
• id: string | undefined
Defined in tag.ts:112
• staticState: ITagStaticState | undefined
Defined in tag.ts:113
▸ fetchStaticState(): Promise‹ITagStaticState›
Defined in tag.ts:158
Returns: Promise‹ITagStaticState›
▸ setStaticState(opts
: ITagStaticState): void
Defined in tag.ts:154
Parameters:
Name | Type |
---|---|
opts |
ITagStaticState |
Returns: void
▸ state(apolloQueryOptions
: IApolloQueryOptions): Observable‹ITagState›
Defined in tag.ts:127
Parameters:
Name | Type | Default |
---|---|---|
apolloQueryOptions |
IApolloQueryOptions | {} |
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:
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
Defined in tag.ts:27
• TagFields: any = gqlfragment TagFields on Tag { id numberOfProposals proposals { id } }
Defined in tag.ts:28