-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Implement wasp/client/crud API #1700
Conversation
@@ -8,7 +8,7 @@ import type { | |||
{=# isAuthEnabled =} | |||
import { throwInvalidCredentialsError } from 'wasp/auth/utils' | |||
{=/ isAuthEnabled =} | |||
import type { GetAllQuery, GetQuery, CreateAction, UpdateAction, DeleteAction } from "{= crudTypesImportPath =}"; | |||
import type { {= crud.name =} } from "wasp/server/crud"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New API simplified this import, but this was also a bug that was fixed @Martinsos
then | ||
genCrudOperations spec cruds | ||
<++> genCrudServerOperations spec cruds | ||
then genCrudServerOperations spec cruds |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Later on, we should move genCrudServerOperations
to Wasp.Generator.SdkGenerator.Server.CrudG
as well. I didn't want to make unnecessary changes in this first round of changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we drop a comment maybe or you think it will be o obvious enough?
9cbd817
to
5f7b1f5
Compare
No description provided.