0

So here's my mongodbSchema:

Schema = new SimpleSchema({

room: { type: [String] }

});

Room = new Mongo.Collection('room')
Room.attachSchema(Schema)

Now when I try to insert an array into it

Room.insert(["hello", "dog"]);

it gives me this error, "RangeError: Maximum call stack size exceeded"

1 Answer 1

1

woops, rookie mistake. Room.insert({room: ["hello", "dog"]});

Sign up to request clarification or add additional context in comments.

1 Comment

Better just delete the whole question, unless you want to give yourself cred by answering your own... and then delete it :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.