gentics / mesh-incubator

Project which is home for planned enhancements for Gentics Mesh
3 stars 0 forks source link

Micronode GraphQL-Response uses different format #144

Closed deckdom closed 5 years ago

deckdom commented 6 years ago

Gentics Mesh Version, operating system, or hardware.

Problem

Currently the issue lies in the Micronode handling in the GraphQL endpoint. The format is not the same as everywhere else, which causes confusion and additional normalization work (So you can actually compare the response values).

Normal Response (POST search/nodes, GET nodes/<uuid>, etc.):

{
    "uuid": "...",
    "microschema": {
        "name": "..."
    },
    "fields": {
        "myField": "..."
    }
}

GraphQL-Response:

{
    "myField": "..."
}

Expected behaviour and actual behaviour

GraphQL should return Micronodes the same way as every other Response which contains Micronodes

Jotschi commented 6 years ago

I'm not sure whether we can change the format. I'll take a look at it if I find some time.

Jotschi commented 5 years ago

Response format has been aligned. Change was released with 0.35.0