Skip to content
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

docs: Add metadata in relationships doc #1389

Merged
merged 1 commit into from
Oct 2, 2023
Merged

Conversation

JF-Cozy
Copy link
Contributor

@JF-Cozy JF-Cozy commented Sep 27, 2023

No description provided.

}
}
doc.relationships.authors.data[0].metadata = { addressId: "123" }
await client.save(doc)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems kind of tedious :/ Using doc.relationships.authors.add({_id: ..., metadata: ...}) does not work?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@paultranvan non ça ne fonctionne pas, l'argument est le doc en question à lier, alors que concernant les metadata on ne veut pas les mettre sur le doc mais sur la relationships elle-même.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, let's make an issue then: #1393

@JF-Cozy JF-Cozy requested a review from paultranvan October 2, 2023 12:00
@JF-Cozy JF-Cozy merged commit 1ee586f into master Oct 2, 2023
4 checks passed
@JF-Cozy JF-Cozy deleted the docs/relationships branch October 2, 2023 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants