You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the client side I do a Books.findOne({}, {fields: {anOptionalField:1}})
The anOptionalField in this my case is another object created using Class.create({...})
Then the I get the following error:
Error invoking Method '/Astronomy/insert' errorClass {
details: undefined,
error: 403,
errorType: "Meteor.Error",
isClientSafe: true,
message: "Inserting from the client is not allowed [403]",
reason: "Inserting from the client is not allowed"
}
And it does not throw the error when I use the following query: Books.findOne({}, {fields: {anOptionalField:1}}, defaults: false)
To me it seems like a bug that a findOne query causes the client to try and insert something into the collection.
The text was updated successfully, but these errors were encountered:
On the client side I do a
Books.findOne({}, {fields: {anOptionalField:1}})
The
anOptionalField
in this my case is another object created usingClass.create({...})
Then the I get the following error:
And it does not throw the error when I use the following query:
Books.findOne({}, {fields: {anOptionalField:1}}, defaults: false)
To me it seems like a bug that a findOne query causes the client to try and insert something into the collection.
The text was updated successfully, but these errors were encountered: