gnikyt / laravel-shopify

A full-featured Laravel package for aiding in Shopify App development
MIT License
1.24k stars 374 forks source link

Using triple store as model #51

Closed shawnhind closed 6 years ago

shawnhind commented 6 years ago

Sorry if this isn't appropriate as an issue.

I have a use case where I need to use a triple store (graph database such as Blazegraph or Amazon Neptune) rather than a relational database. From what I can tell laravel-shopify relies on eloquent for storing model information.

Would it be feasible to override parts of the module that use eloquent with my own read and write methods on a graph database?

gnikyt commented 6 years ago

It would be a lot of work, you would have to override a lot of files. It may be worth your while to maintain your own internal fork for it.

shawnhind commented 6 years ago

So would it be more than just writing read and write methods in the shop model?

gnikyt commented 6 years ago

Off the top of my head, it's using firstOrCreate, save, few where methods. The new version coming gets more complex in that there's ankther related model added to the mix. I'm not sure what to suggest to you though as yes, it's dependence is on eloquent.