bug: hyper returning just the doc
field off of full document
#546
Labels
bug
Something isn't working
doc
field off of full document
#546
As part of #531:
Basically, to allow hyper adapters to gradually migrate to the new shape
{ ok: true, doc: { ... }}
, I made it so hyper core pulls doc off of the response from the adapter, when "legacy get" is enabled (which it is by default right now), so that it matches the legacy behavior to just return the document, even if the adapter is returning the new shape.The crux is that a document being fetched may actually have a
doc
field on it. So hyper would just extractdoc
from the document and return that.I'll need to patch hyper core to remove that adapter "backwards compatibility" magic. Basically means that adapters will have to updated in tandem with hyper core, when we make the full swap over to the new hyper shape.
The text was updated successfully, but these errors were encountered: