You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This might be a slightly niche request, but please allow me to explain.
I store my data in Git, as YAML files. I'm modelling it as Prisma and syncing the YAML to PostgreSQL to make it available via REST and GraphQL.
The Many to One and Many to Many Models for JSON Schema assume that the sub-types are embedded, when actually for this use-case we want an array of IDs.
Example: I'm modelling my YouTube channel which has a concept of an "Episode" which features one or more technologies.
model Episode {
id String @id
technologies Technology[]
}
model Technology {
id String @id
episodes Episode[]
}
Which generates this embedded JSON schema on each side:
This might be a slightly niche request, but please allow me to explain.
I store my data in Git, as YAML files. I'm modelling it as Prisma and syncing the YAML to PostgreSQL to make it available via REST and GraphQL.
The Many to One and Many to Many Models for JSON Schema assume that the sub-types are embedded, when actually for this use-case we want an array of IDs.
Example: I'm modelling my YouTube channel which has a concept of an "Episode" which features one or more technologies.
Which generates this embedded JSON schema on each side:
Would it be possible to get something merged that allows me to annotate these types as disjunctions so that the following was generated?
The text was updated successfully, but these errors were encountered: