Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8490545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:09:14+00:00 2026-06-10T22:09:14+00:00

I am rather confused by the differences between the two. It seems like Collection.create()

  • 0

I am rather confused by the differences between the two. It seems like Collection.create() (fires add and sync events) can be seen as the combination of Collection.add() (fires add) and Model.save() (fires sync)?

Is the above assessment correct? What am I missing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T22:09:16+00:00Added an answer on June 10, 2026 at 10:09 pm

    That’s right. It’s a shortcut method. Documentation states:

    create collection.create(attributes, [options])

    Convenience to create
    a new instance of a model within a collection. Equivalent to
    instantiating a model with a hash of attributes, saving the model to
    the server, and adding the model to the set after being successfully
    created.

    And annotated source code:

    Create a new instance of a model in this collection. Add the model to
    the collection immediately, unless wait: true is passed, in which case
    we wait for the server to agree.

    This second description is a little bit more accurate as only passing {wait:true} has the effect of not adding a model to the collection in case of errors upon saving the model.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm confused about the differences between these two special folders. Here's a code snippet
I want to create my own naming convention for page events rather than AutoEventWireUp
Ok I'm rather confused, does FormsAuthentication.SetAuthCookie() in asp.net create a session based cookie or
I am rather confused about how this would be possible with the iOS Sandbox,
I am rather confused by the hurt-mongering here . I know how to do
Rather than reinvent the wheel I would like to use Outlook to manage my
Rather new to php, so sorry if this seems stupid. I'm really copying a
I'm rather confused right now about exactly how many unique ids MongoDB could generate
I am rather confused with the purpose of these three files. If my understanding
I've got a problem that I'm rather confused about. I have the following lines

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.