Skip to content

createdIds example #396

Closed Answered by zvasilev
piboistudios asked this question in Q&A
Mar 10, 2024 · 3 comments · 3 replies
Discussion options

You must be logged in to vote

Assume createdIds as a temporary ID generated by the client app.
If you pay a bit more attention to the response.json, the client ID "aefe" is not replaced by the server ID "S1416". They both exist in the response.
But if you make more than one create object, this is the way to know how to map both ids!

Each JMAP call after that should use the server ID for "update" or "delete," etc.

This is the way for the server to return a stable immutable ID and not rely on some ill generated client ID.
Then, all subsequent calls could be stable as both client and server use one stable ID. Just take a look on IMAP Plus, etc extensions mess.

Yes, createdIds could be anything by RFC.
By providing create…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@piboistudios
Comment options

Comment options

You must be logged in to vote
2 replies
@piboistudios
Comment options

@piboistudios
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by piboistudios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants