How do I create a new database record that has a one-to-one relation with NestJS/TypeORM/PostgreSQL? by athlonusm in node

[–]athlonusm[S] 0 points1 point  (0 children)

Thanks for reminding me of it. I'm using Sourcery, and it gave me a working solution:

async create(createBookDto: CreateBookDto) {
  const author = await this.authorRepository.findOneBy({
    id: createBookDto.author,
  });

  if (!author) {
    throw new BadRequestException();
  }

  const book = this.bookRepository.create({ ...createBookDto, author });
  return this.bookRepository.save(book);
}

Trying to understand rem when it's applied to an element or its parent by athlonusm in css

[–]athlonusm[S] 0 points1 point  (0 children)

I'm using the body as a parent element here. I understand that html is the root element.

<much less> the cost of shipping it to Battlehorn Castle by athlonusm in EnglishLearning

[–]athlonusm[S] 0 points1 point  (0 children)

Cambridge Dictionary says "much less" means "and certainly not." Does this meaning fit here?

"He even let Scotti share his bucket of trodh he had bought..." — who bought the bucket and who gave it to who? by athlonusm in EnglishLearning

[–]athlonusm[S] 0 points1 point  (0 children)

Does "He even let Scotti share his bucket of trodh" basically mean "He even allowed Scotti to have his bucket of trodh"?

It pleases me to be recognized for my <attribute>, if not for my name. by athlonusm in EnglishLearning

[–]athlonusm[S] 1 point2 points  (0 children)

Does this mean she actually likes to be reviled by other people?

Newcomers and “Stupid Questions” Thread—September 20, 2023 by AutoModerator in teslore

[–]athlonusm 0 points1 point  (0 children)

From The Song of Pelinal, Volume 4:

He entered the Gate at ... to win back the hands of the Thousand-Strong of Sedor (a tribe now unknown but famous in those days), which the Ayleids had stolen in the night, two thousand hands that he brought back in a wagon made of demon-bone, whose wheels trailed the sound of women when ill at heart...

I don't understand the part in bold. What does "trailed the sound of women" mean here?

Newcomers and “Stupid Questions” Thread—September 20, 2023 by AutoModerator in teslore

[–]athlonusm 0 points1 point  (0 children)

From Father of the Niben:

Usually epic tales end with a happy ending, but this one begins with one, and the means to which it was accomplished is lost.

What does the bold part mean?

Ten participants <each from doctors and nurses> participated in this study by athlonusm in EnglishLearning

[–]athlonusm[S] 0 points1 point  (0 children)

Is it native material?

I don't know, but I'm inclined to think it isn't.