Skip to content

Fetching Data using Mutations on running Sandbox getting all fields types response perfectly. But in iOS Client side some fields getting 0 values instead of data. #3540

@shravanteegala

Description

@shravanteegala

Summary

Fetching Data using Mutations using after running Sandbox getting all types response perfectly. But in iOS Client side some fields getting 0 values instead of data.

Scenario:1 : Below example in Sandbox environment getting perfect response.(fields all are non-nullable).

Operation:

mutation UpdateHumanName($id: ID!, $name: String!) {
updateHumanName(id: $id, name: $name ) {
id
name
}
}

Variables:

{
"id": "1000",
"name": "Luke Starkiller"
}

Response:
{
"data": {
"updateHumanName": {
"id": "1000",
"name": "Luke Starkiller"
}
}
}

Scenario:1 : Below example(same mutation) in iOS Client environment some fields 0(zero) values response.(fields all are non-nullable)

Operation:

mutation UpdateHumanName($id: ID!, $name: String!) {
updateHumanName(id: $id, name: $name ) {
id
name
}
}

Variables:

{
"id": "1000",
"name": "Luke Starkiller"
}

Response:
{
"data": {
"updateHumanName": {
"id": 0
"name": "Luke Starkiller"
}
}
}

Here ( id : 0 ) getting zero value instead of 1000.

What is happening in iOS Client side, can any one please help.

Version

v1.17.0

Steps to reproduce the behavior

Here ( id : 0 ) getting zero value instead of 1000. for iOS client

What is happening in iOS Client side, can any one please help.

Logs

Response:
{
  "data": {
    "updateHumanName": {
      "id": 0
      "name": "Luke Starkiller"
    }
  }
}


Here ( id : 0 ) getting zero value instead of 1000.

Anything else?

No response

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