How to fetch child table of a doctype in context for webpage

I want to fetch child table field into webpage but not able to get it.Any one have idea about this how to do that.
i had used this but not working:-
context.demo = frappe.get_doc(‘doctype’,‘document’)