{ sailsit }

Sails Js Tutorials for Beginners and Forum

Have a Question?

If you have any question you can ask below or enter what you are looking for!

exception while using sails-ioredis

Home Forums Database exception while using sails-ioredis

This topic contains 1 reply, has 1 voice, and was last updated by  utsavkansara 9 months, 2 weeks ago.

  • Author
  • #6275


    I was using sails version 1 which doesn’t support sails-ioredis adapter so I was forced to use version 0.12

    After switching to sails 0.12, I was able to use waterline orm for blueprint APIs with sails-ioredis adapter but I am not sure on how I can send custom queries from my controller. I used to use sails.getDatastore() when i was using sails-redis but with sails-ioredis I get following exception,

    error: Sending 500 (“Server Error”) response:
    TypeError: sails.getDatastore is not a function

    – I haven’t disabled any hooks (I have default .sailsrc file)
    – I haven’t disabled any globals

    I had to switch to sails-ioredis because sails-redis doesn’t support redis sentinel

    • This topic was modified 9 months, 2 weeks ago by  utsavkansara.
  • #6279


    I believe sails-hook-orm with v0.12 doesn’t have method to get db instance.

You must be logged in to reply to this topic.