# readData

When you log the object with the database data, you can log it for an example or use it in your code.

{% code title="example.js" lineNumbers="true" %}

```javascript
const { LocalServer, getLocalServer, saveData } = require('naturesaving');
const ExampleSchema = require('path-to-schema') // The path to your schema

const server = new LocalServer({ name: 'Example', path: './database' });

const allData = readData({
    server: server,
    schema: ExampleSchema
)};
```

{% endcode %}
