All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.noenv.wiremongo.command.find.FindOneCommand Maven / Gradle / Ivy

There is a newer version: 4.5.10
Show newest version
package com.noenv.wiremongo.command.find;

import com.noenv.wiremongo.command.WithQueryCommand;
import io.vertx.core.json.JsonObject;

public class FindOneCommand extends WithQueryCommand {

  private final JsonObject fields;

  public FindOneCommand(String collection, JsonObject query, JsonObject fields) {
    super("findOne", collection, query);
    this.fields = fields;
  }

  public JsonObject getFields() {
    return fields;
  }

  @Override
  public String toString() {
    return super.toString() + ", fields: " + fields;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy