So we have a set of types that represent a property graph schema. The edge
type contains a struct that defines the 'type' of the edge and contains
three values:
- label
- fromVertexType
- toVertextType

The idea being that the triplet defines the unique id of the edge type. The
fromVertexType and toVertexType were to be represented as relationships to
other defined vertex types. We intended to use the relationships in Atlas
as a way to enforce the schema correctness. We stored the three values in a
struct to provide an easy way to structure and group the data.

On Tue, Feb 20, 2018 at 8:41 AM, David Radley <[email protected]>
wrote:

> Hi Pierre,
> That is not the way we have implemented the relationships. It is only
> possible to have relationships between 2 entities. I think this makes
> sense to restrict to entities. I am interested why you need this and
> whether there are alternative ways to model what you need,  all the best,
> David.
>
>
>
> From:   Pierre Padovani <[email protected]>
> To:     [email protected]
> Date:   20/02/2018 14:26
> Subject:        Relationships to struct fields
>
>
>
> Quick question, as I could not find any documentation that asserts this is
> a valid use case or not.
>
> I have a type with a struct. I'd like to create a relationship from a
> field
> in the struct to another type.
>
> Is this even possible?
>
>
>
> Unless stated otherwise above:
> IBM United Kingdom Limited - Registered in England and Wales with number
> 741598.
> Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
>

Reply via email to