How to convert Php foreach to Twig?
Your loop should be outside the JS brackets:
{% for res in events_from_db %} { id : "{{ res.id}}", title : "{{ res.title}}", start : "{{ res.start}}", end : "{{ res.end}}", color : "{{ res.color}}", },{% endfor %}