-
Notifications
You must be signed in to change notification settings - Fork 13
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
Relationships are not included in result of relationship add
method
#1403
Comments
Can you provide code sample? Schema and how you make the call please? Also, I though we should not use |
Schema de Client :
La requête (simplifiée) afin d'include les relationships :
A partir de là, j'ai donc dans mon doc Puis j'ajoute une relation :
Or cet attribut A noter que si j'ai besoin de |
Pour clarifier, ce comportement est "normal" puisque que le document retourner est le retour de la méthode save de CC qui n'hydrate pas le document. Pour ce qui est des méthodes statiques, je crois qu'elles n'existe que côté |
When you create a relationship between 2 doctypes, for example
io.cozy.geojson.timeseries
andio.cozy.contacts
to have a contact in a timeseries, it is then possible to use anadd
method on the relationship from the timeseriestimeserie.myRelation.add()
.This method updates the timeserie document and returns this new object with its new revision. The problem is that if the app includes the relationships in the reference document (timeserie in this example), the document returned by the
add()
method does not have these includes.The text was updated successfully, but these errors were encountered: