-
Notifications
You must be signed in to change notification settings - Fork 32
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
Columns [meta] and [type] included in mssql query #53
Comments
We have never tested with MS SQL Server. It looks like |
The same happens when you use postgres. Is inclusion of attributes |
Cool project btw! |
I did not pursue this issue any further |
MSSQL is now available on Linux so I'll try to reproduce this soon and hopefully add MSSQL as unofficially supported (not sure if it is possible to run it on Travis). |
What about postgres? Is it possible to exclude these fields when using that dialect? I don't know why it's trying to pass a value to a |
I need a better look at the code to refresh my memory. I'll try to get round to it today. |
Trying to look at this one too, it is a blocker for me right now. |
@aledalgrande what exactly is the problem in postgres ? |
@championswimmer when I call a resource creation endpoint I see this from
I don't have the type column, so it fails. Why is it trying to save it? The type shouldn't need to be stored right? (keep in mind I create my own models with sequelize separately) |
@aledalgrande done |
I'll have a better look at this during the weekend and see if it fits with the design philosophy of the |
So I'm having this same issue using sqlite, it's querying for |
The short answer is: yes, as explained in my comment above, The structure of the table is automatically generated by the handler and should be opaque to applications. Also, SQLite is not officially supported at the moment. 4 of the automated tests are failing for SQLite and until those pass we cannot support it officially. Contributions to help figure out what the problem is and fixing it are welcome. |
It's been a few months now since I last looked at this but I clearly remember that the |
You're most probably correct. I'll have to have a more careful look at the code. On a brighter note it appears that the latest version of Sequelize fixes the issues I was still seeing with SQLite tests failing (I had already traced it to a problem with Sequelize, so it's good to see it's fixed) and I have a PR almost ready to add SQLite to the list of supported databases since all the tests are now passing. Should be able to merge it on Wednesday. Then I'll dig deeper into this issue. |
Great. I still have my environment available, i can do some testing as well |
@paparomeo It would be useful to make this clear in the documentation. I have been assuming that these backends were schema agnostic: given some attribute specification in jsonapi-server, any database should work with any matching schema. My hope was I could use this to turn an existing database into a read only API. It wasn’t clear that these two columns were prerequisites. |
So... It is still not fixed yet? I have the issue too, about the "type" and the "meta" |
|
I'm working on a fork with an mssql option. In the default modelGenerator, we set Trying to setup commands to run the tests is insane. I don't have mysql, psql, sqlcmd, etc. And I'm on a Mac. (Face palm) We were able to get an Express server on Node using JagQL, and a forked MSSql of this library to work on a MSSql VM on Azure. Here's the fork: |
When connecting to a SQL Server instance, [type] and [meta] columns are ending up in the raw sql query.
The text was updated successfully, but these errors were encountered: