Skip to content

Mutations should run in SERIES not parallel #65

@cshadek

Description

@cshadek

I'm running Graphiti 0.26.0 and noticed that Mutations seem to be running in parallel when they should be running in series.

A simple example would be:

mutation Test {
    addLike(input: {id: 1}) {
       ....
    }
    removeLike(input: {id: 1} ) {
       ....
    }
    addLike2: addLike(input: {id: 1} ) {
       ....
    }
}

Ideally this should run the top fields in order, per the spec, but it doesn't and it seems to run them in parallel, leading to potential race conditions and unintended results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions