-
Notifications
You must be signed in to change notification settings - Fork 69
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
Strange incompatibility #2
Comments
huh so |
Hi, having the same issue with a fresh project - i'll try to help diagnose this. It is really what i've been looking for. I was about to just recreate it myself. |
Changing the
to:
fixed it for me. |
There is a reason I removed the type from this which I will type up for general consumption later and add it to the README. Unfortunately, some bugs/lacking features in loopback / loopback-datasource-juggler make this mixin awkward. Essentially when you make it a Boolean, you can't check if the property exists or not because when you run a query like |
Ok, that makes sense :/ I was not able to get the mixin to work fully, even with the changing of the type. All that did was remove the error. I will have to try and explore a different method of doing this. |
@gausie any update about this issue? |
Seems to be related to this issue in loopback-swagger, which was merged to master about 9 days ago. I added this line to my package.json dependences
Additionally and unrelated, once that was solved I had to change line 113 and 130 to be compatible for the SQLite connector; I'm unsure if it would work in other RDBMS, but the SQL ends up and-ing an empty brackets to the delete clause. SQLite doesn't interpret empty brackets as truthy. So I just made it a condition that will (normally) be true. Wasn't sure how to get the query writer to let me just do "1=1"
|
Still me unfortunately!
I have a clean generated project in loopback and just added the softdelete-mixin. I am using node v5.2.0.
If I included the mixin in model-config.json I got this error:
I tried to run also npm install inside the npm package but I got the same result. Honestly I have no idea what's going on. I will try to dig up more. If you have any suggestions let me know!
The text was updated successfully, but these errors were encountered: