Skip to content
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

Merged
merged 1 commit into from
Jan 31, 2024
Merged

Implement wasp/client/crud API #1700

merged 1 commit into from
Jan 31, 2024

Conversation

infomiho
Copy link
Contributor

No description provided.

@@ -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";
Copy link
Contributor Author

@infomiho infomiho Jan 30, 2024

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
Copy link
Contributor Author

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.

Copy link
Member

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?

@Martinsos Martinsos force-pushed the new-sdk-client-crud branch from 9cbd817 to 5f7b1f5 Compare January 31, 2024 10:36
@Martinsos Martinsos merged commit 7c93340 into new-sdk Jan 31, 2024
1 of 4 checks passed
@Martinsos Martinsos deleted the new-sdk-client-crud branch January 31, 2024 10:38
sodic pushed a commit that referenced this pull request Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants