Skip to content

[New feature] PatchOrCreate - to create or update (without destructing) #38

@bran921007

Description

@bran921007

Airtable::table('default')->updateOrCreate(['Email' => 'johndoe@gmail.com'], ['Address' => 'Calle 13']);
is very useful to check if some record exists to update it, and if not create it.

The problem is that it deletes the rest of the column values, so Is not convenient in some scenarios.

To work around this I do need to find the Airtable id using ->where() method and use the patch method.

Would be appreciated a PatchOrCreate method

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