@dxos/echo
    Preparing search index...

    Function makeRelationFromJsonSchema

    • Construct a new relation-kind type entity from raw metadata. Parallel to makeRelation but takes pre-built jsonSchema instead of piping through an Effect schema. source / target accept either a static Type.Obj entity or the well-known Obj.Unknown schema.

      The returned entity is in-memory; persist it with db.addType(entity).

      Parameters

      • props: MakeTypeProps & {
            source: AnyObj | UnknownTypeSchema<any, Object>;
            target: AnyObj | UnknownTypeSchema<any, Object>;
        }

      Returns Type.Type<TypeSchema>

      O(schema size); validates the JSON schema into a new in-memory type entity, with no database I/O.