Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

denihs
Copy link
Contributor

@denihs denihs commented Oct 5, 2023

This error was thrown when calling writing methods (insert/update/remove) from the client in a prototype app (uses the insecure package):

image

That happens because the insecure package allows you to call a function like TasksCollection.insert({text: "New Task"}) from the client then it calls that same method in the server to persist the data. But these sync methods no longer exist in the server, hence the error.

So now we are creating this mapper that calls the respective async method on the server side and persists the data.

…ive async methods when calling them from the client with insecure
@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #3227: Solve not being able to insert/update/remove in client.

@denihs denihs added this to the Release 3.0 milestone Oct 5, 2023
@denihs denihs requested a review from Grubba27 October 5, 2023 19:15
Copy link
Contributor

@Grubba27 Grubba27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ltgm

@Grubba27 Grubba27 merged commit 403e74a into release-3.0 Oct 5, 2023
@StorytellerCZ StorytellerCZ deleted the feature/solve-not-being-able-to-insert-update-remove-sc-3227 branch October 6, 2023 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants