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 4f604fd commit 87a7dabCopy full SHA for 87a7dab
packages/pinia-orm/src/query/Query.ts
@@ -1088,7 +1088,7 @@ export class Query<M extends Model = Model> {
1088
1089
const modelByType = this.model.$types()[record[this.model.$typeKey()]]
1090
const getNewInsance = (newOptions?: ModelOptions) => (modelByType ? modelByType.newRawInstance() as M : this.model)
1091
- .$newInstance(record, { ...(options || {}), ...newOptions, relations: false })
+ .$newInstance(record, { relations: false, ...(options || {}), ...newOptions })
1092
const hydratedModel = getNewInsance()
1093
1094
if (isEmpty(this.eagerLoad) && options?.operation !== 'set' && this.hydrationKey !== undefined) {
0 commit comments