There is a superb, longish quote from NT Wright on Keith McIlwain’s blog which is well worth a read.
“It’s not, for a start, a list of rules, thought it contains many commandments of various sorts and in various contexts. Nor is it a compendium of true doctrines, though of course many parts of the Bible declare great truths about God, Jesus, the world and ourselves in no uncertain terms. Most of its constituent parts, and all of it when put together (whether in the Jewish canonical form or the Christian one), can best be described as story. This is a complicated and much-discussed theme, but there is nothing to be gained by ignoring it.