I have in settings.js
contextStorage: {
default: "memoryOnly",
memoryOnly: { module: 'memory' },
file: { module: 'localfilesystem' }
},
and in a function node I can access memoryOnly or file by using, for example
context.get("x", "memoryOnly")
However, if I use context.get("x", "default")
, it says
[warn] Unknown context store 'default' specified. Using default store.
I want to do this as it is used in a subflow and the store to use is one of the env parameters. It would be nice to have a default there of "default" rather than "memoryOnly" which might not even be a valid store. I can do it with a hack by testing for "default" and using null
if it is but that isn't very pleasing.
Am I missing something?