Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can a Entity have property of type array or object

See original GitHub issue

Issue Description


I’m trying to make multipalyer snake game. So every player have a body of dots with x,y coordinates. It seems i cannot hold it in the entity object as array or object of objects like this:

public snake = {};
snake['head'] = {x:0,y:0}

or like this

public snake = [];

I get only the ADD state operation but after changing the values inside the snake varriable i don’t get any updates

My listener is watching for any changes but nothing comes …"players/:id/:attribute"

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

endelcommented, Feb 5, 2019

that’s right @IanMayo ❤️ once the pull-request has been made, Netlify provides a preview link inside the pull-request, it’s super handy

IanMayocommented, Feb 5, 2019

@TreantBG - you’d be surprised how easy it is to contribute to the docs. Find the section that relates to your new content, then click on the Edit button: image

You will end up with a Pull Request that the maintainer(s) just merge in. I only made a minor correction, but it was easy 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Entity Framework: Why is a property of type array of objects ...
Entity Framework doesn't support mapping navigation properties of bare Array types. The property has to be of Type that implements the ...
Read more >
Working with objects - JavaScript - MDN Web Docs - Mozilla
The same way, JavaScript objects can have properties, ... Some object types have special initializer syntaxes — for example, array ...
Read more >
The 'from' property value in the 'select' action inputs is of type ...
Solved: Using a 'Transform data using Power Query' to get and manipulate data from SQL. I then run 'Parse JSON'.
Read more >
Practical JavaScript: Arrays vs. Objects - Towards Data Science
Think about what your particular data represents: If it's a single entity with named properties, you want an object. If it's a group...
Read more >
Converting Object to an Array |
Finally with ES2017, it's official now! We have 3 variations to convert an Object to an Array in JavaScript.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found