We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31e5206 commit dbad7bdCopy full SHA for dbad7bd
1 file changed
src/party/idocument.js
@@ -151,14 +151,17 @@ class IDocument extends EventEmitter {
151
152
debug('creating document ', type, id)
153
154
- const rawDocument = (await party.create(type, data))[0]
+ const rawDocuments = (await party.create(type, data))
155
156
- const docs = (await party.find()
+ debug('hydrating', rawDocuments)
157
+ return (await party.factory.hydrate(rawDocuments))[0]
158
+
159
+ /*const docs = (await party.find()
160
.type(rawDocument.$meta.type)
161
.id(rawDocument.$meta.id)
162
.exec())
163
- return docs[0]
164
+ return docs[0]*/
165
}
166
167
async remove(){
0 commit comments