Skip to content

Instantly share code, notes, and snippets.

@phortx
Last active October 12, 2018 10:34
Show Gist options
  • Save phortx/44d5c16ca494918ce562ccbc5cba84ec to your computer and use it in GitHub Desktop.
Save phortx/44d5c16ca494918ce562ccbc5cba84ec to your computer and use it in GitHub Desktop.
API specification for Vuex-ORM persistence plugins

Current state

Method Plugin-GraphQL Plugin-Axios
Read multiple Model.fetch(filter) Model.$fetch()
Read single Model.fetch(id) Model.$get()
Create record.$persist(), Model.persist() Model.$create()
Update record.$push(), Model.push() Model.$update()
Delete record.$destroy(), Model.destroy() Model.$delete()
Model related custom Model.customQuery() ?
Model unrelated custom simpleQuery() / simpleMutation() ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment