Skip to content

Add pool id (poolKey) in Position entity #30

@lehoangnam040

Description

@lehoangnam040

Hi,

Is this possible to add poolId as a field of Position entity. When I got the position id -> i wanna know the data of position and data of the pool that this position minted. But with current code seems like I can't

v4-subgraph/schema.graphql

Lines 416 to 433 in d987ffc

type Position @entity {
# tokenId
id: ID!
# tokenId
tokenId: BigInt!
# address of current owner
owner: String!
# the EOA that minted the position
origin: String!
# created time
createdAtTimestamp: BigInt!
# subscribe events
subscriptions: [Subscribe!]! @derivedFrom(field: "position")
# unsubscription events
unsubscriptions: [Unsubscribe!]! @derivedFrom(field: "position")
# transfer events
transfers: [Transfer!]! @derivedFrom(field: "position")
}

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions