How to set multiple option questions and save that in DB?

I am looking for how to set a question with multiple options and make the options to be stored in db

Hi @hari_s18, you’ll need to be a little more specific as that’s a pretty big chunk of stuff end-to-end. But at a high level you’ll want…

  • a server with a database and some sort of API layer (Rails, Django, some GraphQL implementation, Firebase, Prisma, etc)
  • [assuming you want to use ember datat] an ember data model representing a question and another model representing question option with a relationship between them
  • an application adapter/serializer (or model specific if for whatever reason you need that) that matches your API

Once you have all those pieces using Ember and Ember Data to create/fetch/update/delete questions and options is trivial using standard store/record methods.