When using ORM to create an EDGE entry you have to specify the FROM and TO fields using the name of Label (table) followed by slash and the ID.
const postOwnerData = {
owner: 'People/' + PeopleID,
post: 'Post/' + postID
};
await this.postOwnerRepository.create(postOwnerData);
To use CRUD methods you can use it as you would use with any other connector, see more in CRUD methods.
To use Gremlin Traversal Steps in bytecode mode look at Direct Query Execution (Gremlin Bytecode).
- 1 - Datasource
- 2 - Models
- 3 - Repositories
- 4 - CRUD methods
- 5 - Direct Query Execution (Gremlin Bytecode)
- 6 - Transaction