[Modules] Using an object as Input to a Module

Hey is it possible to have as input to a module an entire object?
E.g. i could call inside the module something like my_object.my_feautre.size
etc.

Hi @lys123,

Yes you can! You can choose the Data Type when creating your Module and pass in objects. Here's an example:


You can then reference inputData.value.bye.name which evaluates to 3 by default.
Here's the link to our documentation: https://docs.retool.com/docs/modules#data-inputs
Let me know if you have any other questions!

Grace



1 Like

ahh thanks i was referencing it as inputData.bye.name.value that was my mistake. Thanks for the guidance!