Have Wasp have top level "data schema" #642
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
hm
Requires more thought
idea
Something to consider
major feature
research
wow
Right now we have Entities, which are a way to specify a top level data schema, but we very likely want to push that to another level, in order to unlock deeper understanding of many parts of Wasp.
Ideally we would be able to also define pieces of data that are not necessarily persisted in the database, and then use those on different places, e.g. to describe the return types of Operations, or even their input types, which would then also give us more power to work with Operations in a smarter way. It should also enable better support for TS (which we don't have at all for now btw) since we can be smarter about the types we create in TS. More knowledge is just great in many ways!
There are different ideas on how to achieve this:
enum
and recently alsotype
which are very interesting for this because they (especiallytype
) bring the whole thing much closer to expressivity of GQL. Maybe we can usetype
to describe non-db data?This is still a very vague topic, but it does feel very clear that this is needed for Wasp to be able to advance to the next level of its evolution.
This is connected with:
The text was updated successfully, but these errors were encountered: