Set Value doesn't inherit object schema in certain cases

Wappler Version : 5.0 beta 10
Operating System : MacOS
Server Model: NodeJS
Database Type: PostgreSQL
Hosting Type: Docker

Expected behavior

Set Value inherits object schema of e.g. a database query:

Actual behavior

In certain situations, Set Value doesn’t inherit the object schema

How to reproduce

  1. Do a database query on Globals, e.g.:

  2. On a regular Server Action, do a:

Set Value xyz = {{GlobalMiddleware.user}}
  1. xyz didn’t inherit the object schema