Re:Why Graphiti?
by foobar_ on Saturday October 26, 2019 @12:20PM
(#21364545)
GraphQL doesn't not have support for dictionaries and JSON. I'd rather just use JSON schema + Mongo directly. If there is a way to batch multiple HTTP requests ... then GraphQL would be an overkill.
[ Parent
| on HN ]
Re:Why Graphiti?
by halostatue on Sunday October 27, 2019 @02:09PM
(#21371384)
Neither of those is exactly true. GraphQL has support for user-defined scalars and we’ve defined a `JSON` scalar that is used to transfer arbitrary JSON objects as JSON-encoded strings (we also have a `map` scalar that renders as a JSON object at its field, but accepts a JSON-encoded string for input formats; we are shifting away from that because _some_ clients don’t have the flexibility of producing inputs like that).