Skip to content

VertexCollection save doesnt return all attributes #658

@creatzor

Description

@creatzor

Hi,

Following the reference for saving a vertex, I notice that the attributes from the save are not returned on success.
The reference says it should exist "assert.equal(doc.some, "data")"

const graph = this.db.graph(graphName);
const vertexCollection = graph.vertexCollection(collectionName);
const edgeCollection = graph.edgeCollection(edgeName);

const res = await vertexCollection.save({
  name: 'bunny shop',
  active: true,
  createdAt: Date.now()
})
console.log(res);

Output from console log: raw { _id: 'shop/204411', _key: '204411', _rev: '_aZFwLnq---' }

I confirmed that the attributes were indeed created by visually inspecting the graph.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixedIssue has been resolved but remains open due to a pending release.semver-majorThis issue requires backwards-incompatible changes to address.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions