A guard for the known types seems reasonable. Converting it to an atom makes the API a little inconsistent,since make_query_from_params takes a binary for the type.