This folder contains examples on how to use some features of the DataStax Node.js Driver.
You should also visit the Documentation and FAQ.
Each example is generally structured in a way where the Client is connected at the beginning and shutdown at the end. While this is suitable for example single script purposes, you should reuse a single Client instance and only call client.shutdown() when exiting your application.
If you have any questions regarding these examples, feel free to post your questions in the mailing list.