Skip to main content

infrahub_sdk.node.metadata

Classes

NodeMetadata

Represents metadata about a node (created_at, created_by, updated_at, updated_by).

Populated from the node_metadata GraphQL block when include_metadata=True is passed to a query. The *_by fields point to the user who created or last updated the node, exposed as :class:NodeProperty references.

Attributes:

  • created_at: ISO-8601 timestamp of node creation.
  • created_by: The account that created the node.
  • updated_at: ISO-8601 timestamp of the most recent update.
  • updated_by: The account that performed the most recent update.

RelationshipMetadata

Represents metadata about a relationship edge (updated_at, updated_by).

Populated from the relationship_metadata GraphQL block when include_metadata=True is passed to a query. Unlike :class:NodeMetadata, this only carries update info because the creation timestamp of an edge is not tracked separately from its peer node.

Attributes:

  • updated_at: ISO-8601 timestamp of the most recent edge update.
  • updated_by: The account that performed the most recent edge update.