many-realities-studio / realityflow-old

GNU Affero General Public License v3.0
2 stars 1 forks source link

Decide on what data from visual scripting graphs will be handled by server and GraphQL #37

Closed Iminance closed 3 years ago

Iminance commented 3 years ago

Can hopefully base handling of graph data on how we end up migrating object operations to GraphQL

LynchJ13 commented 3 years ago

Our current idea is to use JSON to serialize all the changes that have been made to a graph and send that delta to the server using the GraphQL mutations written by Faisal.

At the current moment, we're using JsonUtility to convert this object into a usable, serialized JSON object. However, we've noticed that when we attempt to deserialize the graph to perform an undo operation, the deserialization only returns an empty graph instead of the graph changes we want.

Possible solution steps may require some changes to the way NGP's built-in JsonSerializer class converts objects into serialized JSON objects.