@daostack/client › Globals › CompetitionVote
- CompetitionVote
+ new CompetitionVote(idOrOpts
: string | ICompetitionVoteState, context
: Arc): CompetitionVote
Defined in schemes/competition.ts:757
Parameters:
Name | Type |
---|---|
idOrOpts |
string | ICompetitionVoteState |
context |
Arc |
Returns: CompetitionVote
• context: Arc
Defined in schemes/competition.ts:759
• id? : undefined | string
Defined in schemes/competition.ts:756
• staticState? : ICompetitionVoteState
Defined in schemes/competition.ts:757
▸ setStaticState(opts
: ICompetitionVoteState): void
Defined in schemes/competition.ts:769
Parameters:
Name | Type |
---|---|
opts |
ICompetitionVoteState |
Returns: void
▸ search(context
: Arc, options
: ICompetitionVoteQueryOptions, apolloQueryOptions
: IApolloQueryOptions): Observable‹CompetitionVote[]›
Defined in schemes/competition.ts:727
Parameters:
Name | Type | Default |
---|---|---|
context |
Arc | - |
options |
ICompetitionVoteQueryOptions | {} |
apolloQueryOptions |
IApolloQueryOptions | {} |
Returns: Observable‹CompetitionVote[]›
Defined in schemes/competition.ts:716
• CompetitionVoteFields: any = gqlfragment CompetitionVoteFields on CompetitionVote { id createdAt reputation voter proposal { id } suggestion { id } }
Defined in schemes/competition.ts:717