GitHub Documentation Patreon donate button

Nested schema levels



  • Hello
    I have a schema like this:

    state
      players (ArraySchema)
        characters (MapSchema)
          active (boolean)
          slots (ArraySchema)
            cards (Schema)
              dice (Schema)
                flag (boolean)

    in a command, i need to change the active and the flag variables, both boolean. I debugged the command and at the end of it, the changes were made and everything is ok. But when the change gets to the client and i inspect it, only the active variable is changed and the flag variable remain unchanged. Why is that? is there some kind of limit to the nested levels of serialization? what alternatives do i have?


  • administrator

    Hi @govem, welcome ūüĎč

    This should've worked, can you provide a reproduction scenario where I could inspect this problem? Are you using @filterChildren() as well?


 

© 2020 Endel Dreyer