maxlath / wikibase-edit

a lib to edit Wikibase from NodeJS
67 stars 25 forks source link

How-to get a claim guid #33

Closed mwtoews closed 4 years ago

mwtoews commented 5 years ago

The How-to guide describes wdEdit.claim.add, which works wonderfully. However, to add qualifiers and references for this claim, a GUID is required. The How-to shows a const claimGuid declaration, but does not demonstrate how to get the claimGuid for a claim. An example to get this dynamically would be appreciated.

Also, the how-to uses const claimGuid, but uses a different name, guid, in some of the functions. This is possibly an error, as these functions should use claimGuid.

maxlath commented 4 years ago

hi, sorry for the delayed answer, this somehow got out of my radar ^^

but I have some good news!