Skip to content

Remove header from document #36

@inzanez

Description

@inzanez

Hi

does it really make sense to have the Header included in the Document<T> structure? Wouldn't it make more sense to let the user of the driver decide whether or not that part of the response is going to be deserialized? Simply by including the header properties (merged or not) in the struct T?

I currently use AQL queries all over the place, and this works quite well as it just serializes/deserializes T. So I get my headers automatically, and I can send them along to the client.

If I were to use the document level driver functions instead, I would have to copy the deserialized header parts over to my T if I needed them. And as far as I can tell, the Arango driver never actually uses the Header structure. So it should be safe to remove the Header fields and just deserialize to T.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions