Alternate Datastores

It’s important to note that ActiveRecord is nothing but a sensible default. Because you have full control over the query JSONAPI Suite can be used with any datastore, from MongoDB to HTTP service calls.

In this section, we’ll show examples customizing resource logic, then packaging that logic into reusable Adapters.

Keep in mind, multiple datastores can be blended in a single request. We can load Posts from a SQL database, and “sideload” Comments from MongoDB seamlessly.