Start a new topic
Answered

Calling Common Code from Flex Service Runtime

Hello, 

     

     How can I call common code from a Flex Service Runtime registered function? Would I use the module endpointRunner? (https://devcenter.kinvey.com/rest/reference/flex/reference.html#endpoint-runner-module


Thank you.


Best Answer

Hey John,


If you use Kinvey Flex Services, then you do not have to use Common Code (actually you cannot). Common Code can be used only if you use the Business Logic feature. There you can call the common functions just by calling their names, so you do not have to use the endpointRunner module.


On the other hand, if you are using Kinvey Flex Functions, they are NodeJS micro-services on their own, so you would not have the need for common code. :)


Please check that StackOverflow thread as well: https://stackoverflow.com/questions/37694288/custom-modules-in-kinvey/


Let me know if that helps you to get further!


Cheeeeerio,

Bilger.

1 Comment

Answer

Hey John,


If you use Kinvey Flex Services, then you do not have to use Common Code (actually you cannot). Common Code can be used only if you use the Business Logic feature. There you can call the common functions just by calling their names, so you do not have to use the endpointRunner module.


On the other hand, if you are using Kinvey Flex Functions, they are NodeJS micro-services on their own, so you would not have the need for common code. :)


Please check that StackOverflow thread as well: https://stackoverflow.com/questions/37694288/custom-modules-in-kinvey/


Let me know if that helps you to get further!


Cheeeeerio,

Bilger.


1 person likes this
Login or Signup to post a comment