Skip to content

Assist AutoIncrement FieldValidator with SQL backend #266

Open
@ishan1608

Description

@ishan1608

I have an auto incrementing integer field (ID) in postgres db.

Whole creating an object using POST request I have to provide OnInit hook with myself manually handling the values.
Instead the better approach would be to let the db handle the ID generation and give me the newly generated ID for the new object.

Is it possible in the current system?
If yes how?
If no should we add this feature?
Also if no what is the solution for now other than making a db query myself and finding out the largest ID and adding 1 to it?

I have posted a StackOverflow question with more details here: https://stackoverflow.com/q/59734290/1641882

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions