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

Computed fields functions failing when specifying the arg type in argument #4258

@sobrinho

Description

@sobrinho

Let say that I create a table named people with a computed field named data that the function is that:

create or replace function people_data(person people)
returns text as $$
  select 'blah'
$$ language sql stable;

If I try to perform an insert returning that field, the query will fail:

mutation {
  insert_people(objects:{name:"John Coltrane"}) {
    returning {
      id
      name
      data
    }
  }
}

Screen Shot 2020-03-31 at 12 21 28

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