Request to enable providing space, version information in the @edge directive

Related products: Data Modeling

Request to enable providing space, version information in the @edge directive

e.g. 

type Relationship @edge(space: “A”, version: “1”) {

    relationName: String!,

    relationType: RelationType

}

@Shreyas Mehta ,

Yes will create a feature request.  Please ensure this request is on slb ADO board as well for tracking 🙂.

-Jason


NewGathering Interest

@Shreyas Mehta 

I’m told to combine the @edge and @view directives like the following.  This will work for you. 
 

type ActedIn @edge @view(space: "imdb", version: "1"){

roleCode: String

salary: Float

}


@Jason Dressel - Thanks Jason. One more query.

 

type Relationship @edge @view(space: "PDM", version: "1_0"){

    relationName: String!,

    relationType: RelationType

}

 

type RelationType @view(space:"PDM", version: "1_0") {

    name: String!,

    description: String

}

 

Can I use a struct type (direct relation) or List/Array as edge properties?


@Shreyas Mehta I do not see why not…. so Yes you can.  The Relationship type is just a ‘View’ that has a direct relation to a RelationshipType type.  All I see is the @edge directive, sets the ‘usedFor” property of a View to be ‘edge’ vs ‘node’

-Jason


@Jason Dressel  - The reason to ask this is because the property of an edge is a edge when the property is of type list/array.