Skip to content

0.16.0 - Set Thing/Action ID yourself

Compare
Choose a tag to compare
@etiennedi etiennedi released this 09 Jul 14:32

Docker image/tag: semitechnologies/weaviate:0.16.0

New features

  • Let user set UUID (#903)
    Prior to this feature UUIDs would always be assigned by Weaviate. With this feature you can set UUIDs yourself. This makes importing concepts with cross-refs easier, as you don't need to catch the return value on creation to know what to reference in your cross-ref. Instead you can assign IDs yourself and prepare even the cross-references up front.

    For POST /actions and POST /things the uuid is validated for the correct format and that it doesn't exist yet. For batch requests (POST /batching/things and POST /batching/actions) validation is far less strict. If you use batch and set IDs yourself, you must make sure that every ID is used only once. For more details, see the docs.

    Non-breaking implementation
    Existing behavior is unchained. Simply leave the id field empty and weaviate will assign one for you - the same way it did prior to 0.16.0