Skip to content

How can I send request with null field? #473

@bizk-sato

Description

@bizk-sato

I want to update a field with null.

So I did something like below.

final req = GUpsertModelReq((b) {
  b.vars.input.field_name = null;

 return b;
}
await client.request(req)

field_name is nullable field in graphql schema.

when I submit the request, it doesn't send the field_name field.
How can I send field with null value?

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