Skip to content

Better to add ".one" at the end for queries which uses limit #415

@charlesskariah

Description

@charlesskariah

In certain part of documentation follow this link , .one is used and the reason is that it throws error if nothing found using limit, while making use of .one it will return nil.I think it must be a standard to use .one for all the queries where we use .limit.

http://hanamirb.org/guides/1.0/models/sql-queries/
In the above link under section limit, this can be added

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