Questions tagged [nest]

NEST is a .NET client for elasticsearch

NEST aims to be a .NET client with a very concise API. Its main goal is to provide a solid strongly typed Elasticsearch client. It also has string/dynamic overloads for more dynamic use cases. Click here for more info about this project.

In terms of computational neuroscience, NEST is a simulator for spiking neural network models that focuses on the dynamics, size and structure of neural systems rather than on the exact morphology of individual neurons. Click here for further information or resources.

3119 questions
0
votes
2 answers

Why nest js giving dependency injection error when i also imported modules in app module?

this is my codes: Auth Module: @Module({ imports: [ TypeOrmModule.forFeature([User]), JwtModule.register({ secret: 'secret', signOptions: { expiresIn: '365d', } }) ], controllers: [AuthController], …
0
votes
0 answers

How to merge between 2 indexes in elasticsearch using c# ISearchResponse?

I'm using elasticsearch c# ISearchResponse search. I want to get results from 2 indexes in 1 search. I want to get all users from the "user" index that their field "doc.Users_Email" is counting more than x times in the field…
0
votes
0 answers

NX Angular + Nest - Angular app is throwing an express error

I've created an NX workspace with an angular app and a nest app, and when I run the angular app (with or without the nest app running), I get an error coming from express. This is what I see in the…
Jake Smith
  • 2,332
  • 1
  • 30
  • 68
0
votes
0 answers

Sending one SNS push notification message to multiple devices at same time

I need to send SNS push notification to multiple devices passing the array of device tokens Currently I'm sending the push message to SNS using this steps: Creating the endpoint: pl, err :=…
0
votes
0 answers

Why axios post doesn't send cookies?

When i use postman to send request to my api, sessionId doesnt change, and all work good. But, when i use axios to request on api, sessionId change with every single request. In axios config i set withCrendentails: true, and it doesnt help. nest…
0
votes
0 answers

Testing Env variables using jest and nestjs

I have a separate module for env variable and there I validate them like bellow, and I want to write tests for this module but when I try write test it fail and I don't know why or what I do wrong test bellow. import { Module } from…
0
votes
1 answer

ERROR [ExceptionHandler] Nest can't resolve dependencies - Error with reading CSV file in Nest.js

Im trying to read an uploaded CSV file in nest and get the following error ' ERROR [ExceptionHandler] Nest can't resolve dependencies of the AssetsController (AssetsService, ?). Please make sure that the argument CsvParser at index [1] is available…
Graham Morby
  • 123
  • 2
  • 11
0
votes
1 answer

TypeORM: "No migrations pending" when attempting to run migrations

Steps to reproduce or a small repository showing the problem: I am working on a project with typeorm on nestjs. the problem is even after running migration after generating migration files, i get No migrations are pending The commands i am using…
0
votes
0 answers

converting ef core query to elasticsearch nest query

i want to convert ef core select query to elasticsearch query with nest library. this is my code below public async Task> SearchPlace(SearchParams searchParams, CancellationToken cancellationToken) { IQueryable
0
votes
1 answer

Nest, typegoose error on console `throw new Error(`Invalid ${type} object`);`

hello everyone i have a problem i want to implement many to many on typegoose when i use export const PortfolioModel = getModelForClass(Portfolio); getting this error throw new Error(Invalid ${type} object); portfolio.service.ts import {…
0
votes
0 answers

Elastic Polygon Shape query using Nest

I am trying to get the following Elastic query filter working by using Nest client { "geo_shape" : { "SitePoint" : { "shape" : { "type" : "polygon", "orientation" : "right", "coordinates" : [ [ [ …
KJSR
  • 1,679
  • 6
  • 28
  • 51
0
votes
0 answers

impementing autocomplete with nest elasticsearch

i am using nest version 7.17 in .net core and completion suggester this is my code below [HttpGet("[action]")] public async Task AutoComplete(string query) { var result1 = _elasticClient.Search(p => p …
0
votes
0 answers

CPANEL: Prisma engine cannot connect to database [Panic error]

Prisma Query Engine/Migration Engine not able to run on CPANEL server. Server Configuration: Prisma Panic Error: Tried changing the database source from cpanel mysql database to digialocean hosted server. P.S. A fluke connection was established…
0
votes
1 answer

Upload Excel file using NestJs and TypeScript

I am exploring how to upload the excel file using NestJs and TypeScript but couldn't get the correct solution on StackOverflow so I write this question. I want to upload the below file with the name "demo.xlsx" to my server: And it has the…
Shubham Verma
  • 8,783
  • 6
  • 58
  • 79
0
votes
0 answers

GetRepository(), CreateRepository(), DeleteRepository() methods no longer exists in Nest 7.x, how to use them?

I upgrade my project from .Net 4.5.2 to .Net 4.8.1 and of course nuget package "NEST" upgraded too. In the NEST 7.X version we don't have anymore the next methods: GetRepository(), CreateRepository(), DeleteRepository(). How to use this methods if I…
Kanasi
  • 59
  • 2
  • 12
1 2 3
99
100