Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

cannot set _id with async insertDocument #363

Closed
Labels
@konsultaner

Description

I have a model:

public class MyModel implements Serializable {
 @DocumentField(DocumentField.Type.ID)
 protected String id;
 @DocumentField(DocumentField.Type.KEY)
 protected String key;
}

When setting the id to MyModel/1 and using synced version of

collection.insertDocument(myModel, documentCreateOptions);

The model will be stored with a key of 1. If I use the async verion of it I get a random key like 23748972. Is this a bug or a wanted behaviour?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /