Retrieving Threads
JavaScript Reference Queries
Pass exactly one reference key/value pair. Both the key and value must be non-empty strings. Empty maps and maps with multiple refs are rejected.getThreadsByRef() returns an array, which is empty when nothing matches.
getThreadByRef() returns the first match or null. A ref is not a unique
thread identifier: several threads can have the same ref. Starting a new thread
with an ordinary business ref still creates a separate thread. Reserved run
correlation via threadify.thread_key is different; see OpenTelemetry.
These methods read persisted data, so newly recorded activity may take a few
seconds to appear. Returned threads are read-only. To contribute to an active
thread, use threadify.join(thread.id) with an authorized key.
JavaScript Query Options
Pass these options as the second argument togetThreadsByRef(refs, options).
They are separate from the ref map, so a ref named status is still supported.
The Go and Python SDKs retain their
RefQuery input, as shown above. Direct
GraphQL queries retain refKey and refValue; see
Thread Queries.