@dxos/client
    Preparing search index...

    Variable makeConst

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

    Creates new relation.

    Type declaration

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

        Parameters

        • schema: S

          Relation schema.

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

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

        • Optionalmeta: ObjectMeta

          Relation metadata.

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