interface PollRepository { $select(id: string): { votes: { create(params: VotePollParams,
meta?: HttpMetaParams<"json">): Promise<Poll>; }; fetch(meta?: HttpMetaParams<"none">): Promise<Poll>; }; } Methods
$select
- $select(id): {
votes: {
create(params: VotePollParams, meta?: HttpMetaParams<"json">): Promise<Poll>;
};
fetch(meta?: HttpMetaParams<"none">): Promise<Poll>;
} Returns {
votes: {
create(params: VotePollParams, meta?: HttpMetaParams<"json">): Promise<Poll>;
};
fetch(meta?: HttpMetaParams<"none">): Promise<Poll>;
}
votes: {
create(params: VotePollParams, meta?: HttpMetaParams<"json">): Promise<Poll>;
}
create:function
- create(params, meta?): Promise<Poll>
Returns Promise<Poll>
Poll
fetch:function
- fetch(meta?): Promise<Poll>
Parameters
Optional
meta: HttpMetaParams<"none">
Returns Promise<Poll>
Poll
Vote on a poll