Skip to content

Syntax Sugar for ._select #32

Description

@0xMochan

Is your feature request related to a problem? Please describe.
._select is pretty verbose, especially when forced to use it with keywords like "from"

subgraph.Query.snapshots._select("from")

Describe the solution you'd like
Use the subscript helpers for a cleaner syntax (and more intuitive)!

subgraph.Query.snapshots["from"]

Implementation checklist

  • Add __setitem__ and __getitem__
  • Add tests for those!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions