这是indexloc提供的服务,不要输入任何密码
Skip to content

Relations in the mutations returning are not supported since alpha40 #1763

@roman-y-korolev

Description

@roman-y-korolev

Since version v1.0.0-alpha40 it is impossible to use relations inside mutation returning.
Example:

mutation {
  insert_smth_v1(objects: [{name: "foo", relate_id: 1}]) {
    returning {
      relateByrelateId {
        id
      }
    }
  }
}

Will return "message": "field \"relateByrelateId\" not found in type: 'smth_v1_columns'"
But it is still posible to use it inside of the query:

{
  smth_v1{
    relateByrelateId {
        id
      }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    c/serverRelated to server

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions