ciscoheat
Explore posts from serversDTDrizzle Team
•Created by ciscoheat on 2/8/2025 in #help
Is it possible to seed nested referenced entities?
If I have three tables with a one to many relations: Agency -> Project -> Domain
I see in the docs that with
refine
you can create references from one table to another:
But I would also like to create references to domains, however I cannot keep nesting after project
. How to create relationships between project and domain, so the project refers to an agency?2 replies
Aarktype
•Created by ciscoheat on 2/2/2025 in #questions
Validate Record values with morphs
Is it possible to do more advanced validation on Records? Ideally I'd like to apply any morph to each item in a Record.
In the
???
place, I'd like to validate against nullNumber
, is it possible?9 replies
Aarktype
•Created by ciscoheat on 2/1/2025 in #questions
Testing a type in pipe
Congratulations on the 2.0 release, it's working great! 😀 Is it possible/best practice to run a type inside pipe? I'm having this test condition:
I'm not sure of the best way to handle this scenario with morphs? I see there's a second parameter for
pipe.try
, can it be used to simplify?8 replies
Aarktype
•Created by ciscoheat on 5/11/2024 in #questions
Problem with validation in 2.0 dev?
I'm using
2.0.0-dev.11
and cannot figure out why some very basic validation fails. Short example:
The output I get from running this is:
I'd expected errors for score
, nospace
, tags
and maybe tags[1]
as well. Anything very simple I'm missing?16 replies
DTDrizzle Team
•Created by ciscoheat on 4/16/2024 in #help
Using parameter in LIKE
Is it safe to pass a string directly into a like condition, or does it have to be quoted or parameterized somehow?
3 replies
Aarktype
•Created by ciscoheat on 12/23/2023 in #questions
Array error message
Hello, I think I found an inconsistency in array errors: https://stackblitz.com/edit/vy55da?file=type.ts
The tags error is:
tags must be at least 3 characters (was 2)
But should probably not be characters
, but something like items
.3 replies