Skip to content

Generate Upsert Resolvers #387

Open
Open
@dannydi12

Description

@dannydi12

I was wondering if I can modify the updateOne or createOne generated resolvers to insert/update depending on whether the document exists.

Usually, I would just create a custom resolver and pass the { upsert: true } option to mongoose. But it would be a lot of work to make a ton of custom resolvers for something that can easily be generated but with a small change.

Please let me know if there is any way to accomplish this! Thanks!

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