-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Hasura-styled query? #147
Comments
Would it be enough to allow to overwrite the filter name from |
Hasura style querying would be absolutely amazing. I'm just scrolling through the code to see what would need changing and it's definitely more than just renaming "filter" to "where".. For example in Hasura you write Also Hasura allows for really powerful filtering techniques that would probably require a major change to the query builder used in this project. Still I think that the integration of this project with VuexORM is really nice. I am thinking about using this as a way to "mirror" a backend database so that the app can use the VuexORM query methods to work on local data instead of doing API calls all the time. This wouldn't require super complex GraphQL queries (just simple CRUD on entities), so I think it should be fine. Thanks for the great work on this @phortx ! |
Yes, that kind of filtering would take some bigger changes, I think. But maybe we can try to support the basics. I would be really happy to see a MergeRequest for an adapter :) |
I am checking out lots of similar projects to this one, but keep coming back, hoping that I'l find the strength to fix the integration issues with Hasura :)) For info, some more important Hasura specific formats: Querying a single entity by primary key looks like this:
or like this, but then the result is an array with just one entry:
Getting all entries, in this case all users via |
Hey @stevefan1999-personal I see your (unmerged) commits from last summer, how did you end up with this? Is your branch working well enough for simple CRUD? Or did you give up? :) |
somewhat, i had to schedule my time for school and various other personal time too |
use: getNameForFetch(model, plural ){ |
Hasura has their own style of writing queries:
https://hasura.io/docs/1.0/graphql/manual/queries/query-filters.html
Here's an example adapter to adapt some compatibility with Hasura:
However, since the filter name cannot be changed (fixed to be "where"), I wonder if we can change it from the plugin -- Let's add more adapter transforms for that.
The text was updated successfully, but these errors were encountered: