-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vertices containing arrays of objects - part 2 #30
Comments
Out of interest, I noticed that this is a problem even when the property is not an array or list. Consider the following:
So ... in this case, the
...this is interesting, because the vertex will be stored in the graph, but the code will also throw an exception:
...and there is an inner exception:
Despite the exception, if you look in the database, the vertex will be there. So I'm guessing there is a serialization issue when you try to store properties other than the built in types. I thought this information might help. Thanks! |
Hmm. I'm not exactly sure how this should be solved. My team and I are just handling the serialization/de-serialization of complex properties on our own before submitting the vertices we're saving to the graph, so this isn't a feature I'll be able to invest time into at the moment. My best guess is that you'll need to update the Sorry I can't help more than that at the moment. It would be really cool to get this fully working if you can spare any time! |
Thanks. I totally understand. You have been very helpful already. I would love to spend more time on this, but I have limited time to invest as well. Let me see what I can do. Our dev team is currently trying to decide if we're happy to use CosmosDB in production, if we go ahead then I will probably be able to put more effort into this. It would be a very cool feature. |
Unfortunately, (closed) issue #26 is still seems to be a problem, sorry.
Exceptions are still thrown when you try to save a vertex where a property is an array of objects. This seems fine if it's an array of simple types like integers or strings. But if you write your own class and try to store an array (or collection) of those objects it will fail with an exception.
For repo steps, see issue #26, the code posted there will still fail.
Thanks.
The text was updated successfully, but these errors were encountered: