Skip to main content

funds.subgraph

@bosonprotocol/core-sdk / Exports / funds / subgraph

Namespace: subgraph

funds.subgraph

Table of contents

Type Aliases

Functions

Type Aliases

SingleFundsQueryVariables

Ƭ SingleFundsQueryVariables: Omit<GetFundsByIdQueryVariables, "fundsId">

Defined in

src/funds/subgraph.ts:9

Functions

getFunds

getFunds(subgraphUrl, queryVars?): Promise<FundsEntityFieldsFragment[]>

Parameters

NameType
subgraphUrlstring
queryVarsExact<{ fundsFilter?: FundsEntity_Filter ; fundsFirst?: number ; fundsOrderBy?: FundsEntity_OrderBy ; fundsOrderDirection?: OrderDirection ; fundsSkip?: number }>

Returns

Promise<FundsEntityFieldsFragment[]>

Defined in

src/funds/subgraph.ts:14


getFundsById

getFundsById(subgraphUrl, fundsId, queryVars?): Promise<FundsEntityFieldsFragment>

Parameters

NameType
subgraphUrlstring
fundsIdBigNumberish
queryVarsSingleFundsQueryVariables

Returns

Promise<FundsEntityFieldsFragment>

Defined in

src/funds/subgraph.ts:23