MCPcopy Create free account
hub / github.com/AlexErrant/Pentive / getCardsByNote

Function getCardsByNote

app/src/sqlite/card.ts:584–591  ·  view source on GitHub ↗
(noteId: NoteId)

Source from the content-addressed store, hash-verified

582 return card == null ? null : cardBaseToDomain(card)
583 },
584 async getCardsByNote(noteId: NoteId) {
585 const cards = await ky
586 .selectFrom('card')
587 .selectAll()
588 .where('noteId', '=', toLDbId(noteId))
589 .execute()
590 return cards.map(cardBaseToDomain)
591 },
592 getFields: async () =>
593 await ky
594 .selectFrom('distinctNoteField')

Callers

nothing calls this directly

Calls 1

toLDbIdFunction · 0.90

Tested by

no test coverage detected