Add a decoder for a serialised query