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 Adapter
s.
Keep in mind, multiple datastores can be blended in a single request. We can load
Post
s from a SQL database, and “sideload”Comment
s from MongoDB seamlessly.