Skip to content
Discussion options

You must be logged in to vote

You have these arguments that can help you in the write() method of each entity type (

def _write(self, data: dict | None = None, summary: str | None = None, login: _Login | None = None, allow_anonymous: bool = False, limit_claims: list[str | int] | None = None,
):

  • limit_claims: Limit to a list of specific claims to reduce the data sent and avoid sending the complete entity.
  • field_to_update: A list or a single EntityField to update. If not set, all fields will be updated.

so you can do something like write(data, limit_claims=['P1082'], fields_to_update=EntityField.CLAIMS) to only update the …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dpriskorn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants