Skip to content

Add async reference support#217

Merged
kishorenc merged 2 commits intotypesense:masterfrom
jonasctrl:add_asynchronous_reference
Jan 8, 2026
Merged

Add async reference support#217
kishorenc merged 2 commits intotypesense:masterfrom
jonasctrl:add_asynchronous_reference

Conversation

@jonasctrl
Copy link
Copy Markdown
Contributor

@jonasctrl jonasctrl commented Dec 6, 2025

Change Summary

This PR adds support for asynchronous reference fields in the Typesense Go SDK. The async_reference field option allows documents to be indexed successfully even when the referenced document doesn't exist yet.

https://typesense.org/docs/29.0/api/joins.html#asynchronous-references

PR Checklist

@jonasctrl jonasctrl changed the title add async reference Add async reference support Dec 6, 2025
@kishorenc
Copy link
Copy Markdown
Member

@jonasctrl

Can you please add a test for this?

@tharropoulos
Copy link
Copy Markdown
Contributor

@jonasctrl Thank you for the contribution! Was this run using the generate command, or did you manually add that part in client's yaml file?

@jonasctrl
Copy link
Copy Markdown
Contributor Author

@jonasctrl Thank you for the contribution! Was this run using the generate command, or did you manually add that part in client's yaml file?

I didn’t notice at first that the openAPI yaml was in separate repo, but I see that you already made the necessary commit quite recently tharropoulos/typesense-api-spec@eb2f854 🙏. I've did additional update to use latest code generated files (with small adjustments that were need to integrate them)

@jonasctrl
Copy link
Copy Markdown
Contributor Author

@jonasctrl

Can you please add a test for this?

I could, but on second thought this only affects client-generated code for the go SDK and testing this feature flag doesn’t seem necessary since similar fields added previously aren’t covered either.

@tharropoulos
Copy link
Copy Markdown
Contributor

@kishorenc

@kishorenc kishorenc merged commit 7bf52c7 into typesense:master Jan 8, 2026
2 checks passed
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.

3 participants