dividab/graphql-norm

Generate fallback for getobjectoId when id is missing

Jontem opened this issue · 2 comments

When a graphql type is missing id property we need to identify the object in another way. One option could be like apollo does it, which is to generate the id after the path in the response

ROOT_QUERY.plugins({"type":"area"}).0

I made an MVP to have something to talk around #8 . No regards to performance just something working.

getObjectId felt like the right place to take the final decision if it should use the path as fallback or something else

Released