@dxos/echo
    Preparing search index...

    Class View

    Views are generated or user-defined projections of a schema's properties. They are used to configure the visual representation of the data.

    Hierarchy

    Index

    Constructors

    • Parameters

      • _: never

      Returns View.View

    Properties

    "~@dxos/echo/Kind": Object
    id: string
    projection: {
        fields: readonly {
            id: string;
            path: JsonPath;
            referencePath?: JsonPath;
            visible?: boolean;
        }[];
        pivotFieldId?: string;
        schema?: JsonSchemaType;
    } = Projection

    Projection of the data returned from the query.

    Type declaration

    • Readonlyfields: readonly {
          id: string;
          path: JsonPath;
          referencePath?: JsonPath;
          visible?: boolean;
      }[]

      UX metadata associated with displayed fields (in table, form, etc.)

    • Optional ReadonlypivotFieldId?: string

      The id for the field used to pivot the view. E.g., the field to use for kanban columns or the field to use for map coordinates.

    • Optional Readonlyschema?: JsonSchemaType

      Optional schema override used to customize the underlying schema.

    query: {
        ast:
            | QueryAST.QueryAggregateClause
            | QueryAST.QueryFilterClause
            | QueryAST.QueryFromClause
            | QueryAST.QueryHierarchyTraversalClause
            | QueryAST.QueryIncomingReferencesClause
            | QueryAST.QueryLimitClause
            | QueryAST.QueryOptionsClause
            | QueryAST.QueryOrderClause
            | QueryAST.QueryReferenceTraversalClause
            | QueryAST.QueryRelationClause
            | QueryAST.QueryRelationTraversalClause
            | QueryAST.QuerySelectClause
            | QueryAST.QuerySetDifferenceClause
            | QueryAST.QuerySkipClause
            | QueryAST.QueryUnionClause;
        raw?: string;
    } = ...

    Query used to retrieve data. Can be a user-provided query grammar string or a query AST.

    "~@dxos/echo/Kind": Type

    Entity-kind brand of the type-entity value itself — always EntityKind.Type. The kind of instance the type describes lives on [SchemaKindId] (Object / Relation / Type). Lets Obj.isObject / Relation.isRelation reject type entities by a single [KindId] check.

    "~@dxos/echo/SchemaKind": Object

    Schema-kind brand (object).

    "~@dxos/echo/Type.Instance"?: View.View & OfKind<Object>
    "~@dxos/echo/Type.StaticSchema": Codec<any, any>

    Source Effect Schema — used internally by Type.getSchema(self).

    fields: {}

    The fields defined in the original struct schema. Allows accessing field definitions for introspection.

    id: string

    Object id. Like all ECHO entities, type entities always carry an id — stamped at construction for in-memory (static) declarations and assigned by the database once persisted. The id does NOT determine the entity's URI: static types resolve to their typename DXN, persisted types to echo:///<id> (see getTypeURIFromSpecifier).

    jsonSchema: JsonSchemaType
    name?: string