Access plugin with backend query response from frontend?

I’m probably missing something simple, hopefully someone can help. :upside_down_face:

I currently have a datasource with backend plugin that is based on the sample setup, and have modified the datasource.go file successfully to return a response with a data frame from query(), with the number value I’m expecting.

What I’m wondering, is how I access that backend query response data from the client side datasource.ts file? Is there a reason the backend and frontend do not appear to be connected in the example provided? Such as the testDataSource() and CheckHealth() functions?

Also, should my datasource.ts file be extending DataSourceAPI? I see other examples using DataSourceWithBackend? Any clarification would be great, and apologies if I missed something obvious.