Skip to content

different response by KIND_OBJECT and KIND_LIST #56

Description

@LiFeAiR

Если запросить тип данных и не указать ни одно свойство из объекта выводится ошибка
пример:
запрос:

{"query":"query{landing(id: 53237) {thematic} }","variables":null}

ответ:

{
    "data": {
        "landing": null
    },
    "errors": [
        {
            "message": "You have to specify fields for \"thematic\"",
            "locations": [
                {
                    "line": 1,
                    "column": 27
                }
            ]
        }
    ]
}

НО если так же не заполнить запрос для массива, то все нормально и ошибок нет)
пример:
запрос:

{"query":"query{landing(id: 53237){tariffs}}","variables":null}

ответ:

{"data":{"landing":{"tariffs":[[]]}}}

Хочется какого-то единообразия..

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