skip to Main Content

How do I apply an array values to Mongodb find() in ASP.net

I want to retrieve the specific data using an array-values, but I don't know how to deal with it. URL is like http://localhost/api/data?sym=aa&bb&cc DB documents are like: {"symbol":"aa","price":1.1} {"symbol":"bb","price":1.2} {"symbol":"cc","price":1.3} {"symbol":"dd","price":1.4} {"symbol":"ee","price":1.5} the expected result is: [ {"symbol":"aa","price":1.1} {"symbol":"bb","price":1.2} {"symbol":"cc","price":1.3}…

VIEW QUESTION

UncategorizedMongoDbException: Exception authenticating MongoCredential – Docker

I have a problem connecting a microservice with mongoDB in Docker in a ubuntu server My application.properties: #-------APP------- spring.application.name=app-interventor server.port=${PORT:0} #-----MongoDb------ spring.data.mongodb.host=mongo spring.data.mongodb.port=27017 spring.data.mongodb.authentication-database=admin spring.data.mongodb.username=user spring.data.mongodb.password=user spring.data.mongodb.database=interventorApp spring.data.mongodb.auto-index-creation: true #-----Eureka------- eureka.instance.metadataMap.instanceId=${spring.application.name}:${spring.application.instance_id:${random.value}} eureka.client.service-url.defaultZone=http://eureka:8761/eureka management.endpoints.web.exposure.include=* management.endpoint.health.show-details=always as initialize mongo in docker: sudo…

VIEW QUESTION
Back To Top
Search