Skip to main content

segments

No description

segments(
skip: Int = 0
first: Int = 100
orderBy: Segment_orderBy
orderDirection: OrderDirection
where: Segment_filter
block: Block_height
subgraphError: _SubgraphErrorPolicy_! = deny
): [Segment!]!

Arguments

segments.skip ● Int scalar

segments.first ● Int scalar

segments.orderBy ● Segment_orderBy enum

segments.orderDirection ● OrderDirection enum

segments.where ● Segment_filter input

segments.block ● Block_height input

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

segments.subgraphError ● _SubgraphErrorPolicy_! non-null enum

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

Type

Segment object

See https://docs.sablier.com/concepts/lockup/segments