Skip to content

GabrielArsenio/nest-crud-bug-join

Repository files navigation

Instructions to run


# Create .env file (change values if necessary)
cp .env.example .env

# Run docker compose to create database
docker compose up -d

# Install dependencies
npm ci

# Run application
npm run start:dev

Insert data

curl --request POST \
  --url http://localhost:3000/entity-a \
  --header 'Content-Type: application/json' \
  --data '{
	"name": "Entity A",
	"entityB": {
		"title": "Entity B",
		"entityC": {
			"description": "Entity C",
			"entityD": {
				"text": "Entity D"
			}
		}
	}
}'

Get with joins. If join has three or more levels, the error occurs

curl --request GET \
  --url 'http://localhost:3000/entity-a?join=entityB&join=entityB.entityC&join=entityB.entityC.entityD'

Error

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published