@dxos/react-client
    Preparing search index...

    Variable makeConst

    make: <S extends Type.Relation.Any>(
        schema: S,
        props: NoInfer<RelationMakeProps<Schema.Schema.Type<S>>>,
        meta?: ObjectMeta,
    ) => Schema.Schema.Type<S> & OfKind<typeof Entity.Kind.Relation>

    Creates new relation.

    Type declaration

      • <S extends Type.Relation.Any>(
            schema: S,
            props: NoInfer<RelationMakeProps<Schema.Schema.Type<S>>>,
            meta?: ObjectMeta,
        ): Schema.Schema.Type<S> & OfKind<typeof Entity.Kind.Relation>
      • Type Parameters

        Parameters

        • schema: S

          Relation schema.

        • props: NoInfer<RelationMakeProps<Schema.Schema.Type<S>>>

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

        • Optionalmeta: ObjectMeta

          Relation metadata. (deprecated; use [Obj.Meta] instead)

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