Skip to content

Use getproperty to access fields ? #146

@rafaqz

Description

@rafaqz

Hi, just startedf using Mongoc and it seems great, all working very easily.

But my first impression question is why doesnt getproperty work on Client, Database Document and other user-facing objects.

The syntax could look more like the mongodb docs, and would mean we would get autocompletion of the names for free in the REPL. Also probably dont want users directly accessing fields like handle.

It will require switching to using handle(document) rather than document.handle internally. Can PR if people are interested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions