Skip to content

Support for relation entities #611

Open
@Arachnid

Description

@Arachnid

Sometimes there are entities that should be represented in the graphql schema that don't have corresponding on-disk relations. For instance, we might want to be able to query records related to an address, but don't need to store any information on an address directly:

type Address  {
  id: ID!
  ownedContracts: [Contract!]! @derivedFrom(field: "owner")
  # ...
}

It would be good to be able to represent these in the graph without having to create empty entities for them.

An advanced version of this is an entity that may have a composite key: for instance, representing an individual ERC721 collectible, which entails both a contract address and a token ID.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions