Skip to content

Commit

Permalink
fixed: document virtual columns in ving schema better #70
Browse files Browse the repository at this point in the history
  • Loading branch information
rizen committed Apr 4, 2024
1 parent ee31858 commit a11a757
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions docs/change-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ outline: deep
---
# Change Log

## 2024-04-04
* Provided a little more documentation about virtual columns

## 2024-03-16
* Created a function for fetching ving config in `ving/config.mjs`
* Added a Rest versioning system for API breakages
Expand Down
6 changes: 3 additions & 3 deletions docs/subsystems/ving-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,14 @@ These are used to add a child relationship. They are virtual because they make n
```js
{
type: "virtual",
name: 'userId',
name: 'userId', // the name of the column in the child table that connects it to this table
required: false,
view: ['public'],
edit: [],
relation: {
type: 'child',
name: 'apikeys',
kind: 'APIKey',
name: 'apikeys', // the name of the relationship, think of it like the method name
kind: 'APIKey', // the class name of the child table
},
},
```
Expand Down

0 comments on commit a11a757

Please sign in to comment.