@dxos/client
    Preparing search index...

    Variable makeConst

    make: <S extends AnyRelation>(
        schema: S,
        props: NoInfer<MakeProps<S>>,
    ) => Schema.Schema.Type<S> & OfKind<typeof Entity.Kind.Relation>

    Creates new relation.

    Type declaration

      • <S extends AnyRelation>(
            schema: S,
            props: NoInfer<MakeProps<S>>,
        ): Schema.Schema.Type<S> & OfKind<typeof Entity.Kind.Relation>
      • Type Parameters

        Parameters

        • schema: S

          Relation schema.

        • props: NoInfer<MakeProps<S>>

          Relation properties. Endpoints are passed as [Relation.Source] and [Relation.Target] keys.

        Returns Schema.Schema.Type<S> & OfKind<typeof Entity.Kind.Relation>