Skip to content

[GraphQL] One-to-Many relations? #1964

Closed
@bwegrzyn

Description

@bwegrzyn

When defining a one-to-many relation (ex. User->Vehicles), GraphQL currently expects [String] on the create/update mutation. Is there a way to create new Vehicles in the same request as creating/updating the User? It seems like GraphQL expects you to pass a list of Vehicle IDs instead of an array of Vehicle data like I would do in a REST call.

I would like to avoid doing multiple API calls if possible. Any ideas on how to accomplish this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions