Restructure client.Description objects to correctly split Schema and Collections #1911
Labels
area/collections
Related to the collections system
refactor
This issue specific to or requires *notable* refactoring of existing codebases and components
Milestone
Proposed structure:
Additionally,
PatchSchema
will remain conceptually as-is, updating the schema object only -PatchCollection
will be introduced to do the same for collection stuff.SetDefaultSchemaVersion
will be removed, as it's functionality will be covered byPatchCollection
.Worth noting perhaps is that a
SchemaFieldDescription
will only ever exist for the primary side of a relation.CollectionFieldDescription
will exist for both sides.The pointer from CollectionDescription to SchemaDescription has been removed. I think this makes the separation and [lack of] ownership clearer, as well as making stuff like PatchSchema/Collection more obvious to the user. It may also force us to allow multiple collections from a single schema for free, as the data structure now demands it.
Tasks
The text was updated successfully, but these errors were encountered: