Skip to content

Commit

Permalink
Fixed md
Browse files Browse the repository at this point in the history
  • Loading branch information
Flo0 committed Mar 18, 2024
1 parent 51c974d commit 9989db2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ MongoCollection<SomeCoolObj> collection = ambrosia.createMongoCollection("Collec
```java
// Create a MongoMap with UUID keys and SomeCoolObj values
// Preferably use a field to store the map
Map<UUID, SomeCoolObj> map = ambrosia.createMongoMap("CollectionName", UUID.class, SomeCoolObj.class);
MongoMap<UUID, SomeCoolObj> map = ambrosia.createMapView("CollectionName", UUID.class, SomeCoolObj.class);
...
SomeCoolObj coolObj = ...;
UUID key = coolObj.getUuid();
Expand All @@ -210,7 +210,7 @@ It also provides a toplist query method and a method to query single properties.
### Toplist queries

```java
MongoMap<UUID, SomeCoolObj> map = ambrosia.createMongoMap("CollectionName", UUID.class, SomeCoolObj.class);
MongoMap<UUID, SomeCoolObj> map = ambrosia.createMapView("CollectionName", UUID.class, SomeCoolObj.class);

// Query a top list of 10 objects, ordered by the "killCount" field
boolean ascending = false;
Expand Down

0 comments on commit 9989db2

Please sign in to comment.