Embedding problems in graphs and hypergraphs