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 8939879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:54:50+00:00 2026-06-15T10:54:50+00:00

I am using backbone in a project. I have a scenario where I have

  • 0

I am using backbone in a project. I have a scenario where I have added my multiple models in a collection. Now i have array of models in the collection. I am using rest serivces in order to save. Now I want to make a post call to the server to save those array of models. I know there is a method to pass model to create method of collection like

this.collection.create(model)

But it is for single model to save. I had also tried to apply loop but it doesn’t seem to work. Please help me out.

Thanks in advance

  • 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-15T10:54:51+00:00Added an answer on June 15, 2026 at 10:54 am

    You need to use the .add() function

    this.collection.add(model);
    this.colleciton.add([model1, model2, ..., modeln]);
    

    Edit:

    To save the models that are in the collection, you will need to write a function to iterate through them and save them all individually.

    There are StackOverflow questions the answer this pretty well, for example:

    "How" to save an entire collection in Backbone.js – Backbone.sync or jQuery.ajax?

    Best practice for saving an entire collection?

    How to save a Collection with backbone.js

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

Sidebar

Related Questions

I am using backbone.js. The elements in my collection are just in the order
I am using backbone.js here is my scenario Lets say I have a view
I have been using Backbone on a new project and so far have loved
We are using Backbone.js to build client-side UI that manipulates models shared by multiple
I'm using Backbone.ModelBinder in a Backbone.js Marionette project. I've a scenario which I can't
I am using Backbone.Marionette for my project .I had scenario where i want a
Im using backbone.js to get a collection from the REST server. Fetch triggers fine
I started using backbone for my projects. I finished a simple project and it
I'm about to start a new project using node, backbone, underscore, and express among
I have been using Backbone.js to act as a middleman between Wordpress (using the

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.