Read implementation
Last updated
Last updated
This is the official documentation of the @forestadmin/agent
Node.js agent.
Developing your query translation layer is much easier when you can preview your work and have intermediary deliverables.
Emulation comes to the rescue: all features that need to be implemented when making a translating data source can be emulated inside your Node.js, at the cost of performance.
This enables you to be up and running in minutes and then optimize your code as you go.
The aggregate
method is used by Forest Admin both to count records and to extract the data which is needed to generate charts.
If the API/Database you are targeting has an efficient API that is made for counting records, you may want to handle this case first.