1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Addon MongoSK 2.2.1

The MongoDB database management addon for Skript.

  1. Bug fix time!

    Romitou
    This update brings a major bug fix to the Mongo document creation effects sections. The behavior of the current syntax remains unchanged. However, a new feature has been added: you can now implicitly specify the type of fields you want to add.

    Example:
    Code (Text):
    1. set {_doc} to a new mongo document with:
    2.   mongo "a": 1, 2 and 3
    3.   mongo list "b": 4, 5 and 6
    4.   mongo list "c": 1
    5.   mongo "d": 7
    6.   mongo value "e": 8
    7.   mongo value "f": 9 and 10
    ➡️ {"a": [1, 2, 3], "b": [4, 5, 6], "c": [1], "d": 7, "e": 8, "f": 9}

    Then, a beta syntax was added because I was asked for it a lot: the distinct query. The distinct query is useful when you want to retrieve a specific field from each document in a given collection. For example, if you have documents with a "name" field, you can use this expression to retrieve all the "name" fields of the documents in the collection. Useful, isn't it?

    That's it for today. Enjoy!
Return to update list...