Skip to content
Discussion options

You must be logged in to vote

I think this is bad modelling in retrospect.

The graphql spec says nothing about what it should be

https://spec.graphql.org/October2021/#sec-Response-Format

The response map may also contain an entry with key extensions. This entry, if set, must have a map as its value. This entry is reserved for implementors to extend the protocol however they see fit, and hence there are no additional restrictions on its contents.

It says it should be a map not what type of map.

I think we have modelled this too loosely. In retrospection I think a Map<String,Object> would have been better since it all often becomes JSON anyway and needs keys to be strings in effect.

But nominally we are serialisation …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by victorcampos
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants