Your infrastructure should support both options, if possible, but if you have one choice, I would go with IPv4, but make sure you can add / switch to IPv6. But it will also depend on who the end user of the product is and what are the requirements for your project. Is this for a user who uses / will use IPv6, or are you going to accept into an existing database that mainly uses IPv4.
Based on my experience, the project I'm currently working on is considering migrating to IPv6, as there is a mandate to support IPv6. For the most part, we found out that hardware vendors (switches, routers, computers) and WAN manufacturers were able to support the transition to IPv6. There will be some work to integrate existing IPv4 equipment, but this can be done. Based on cost, it will be about the same, at least hardware.
However, some software products that we use cannot and cannot move to support IPv6, while others seem to be more convenient to support. Based on this, we upgrade to new versions of the software, but we will probably stay on IPv4 for this coin, or at least until the software catches IPv6 support.
source share