Create an order.query method and event