Skip to content

Commit

Permalink
fix: fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
Agnes Lin committed Jun 1, 2020
1 parent 190d095 commit 1d70493
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export function createTargetConstraint<
* };
* createThroughConstraint(resolvedMetadata, 1);
*
* >>> {'categoryId': 1}
* >>> {categoryId: 1}
* ```
*/
export function createThroughConstraint<Through extends Entity, ForeignKeyType>(
Expand Down Expand Up @@ -140,11 +140,11 @@ export function createThroughConstraint<Through extends Entity, ForeignKeyType>(
* };
* createThroughConstraint(resolvedMetadata, {id: 3, name: 'a product'});
*
* >>> {'productId': 1}
* >>> {productId: 1}
*
* * createThroughConstraint(resolvedMetadata, {id: {inq:[3,4]}});
* createThroughConstraint(resolvedMetadata, {id: {inq:[3,4]}});
*
* >>> {'productId': {inq:[3,4]}}
* >>> {productId: {inq:[3,4]}}
*/
export function createThroughFkConstraint<Target, Through extends Entity>(
relationMeta: HasManyThroughResolvedDefinition,
Expand Down

0 comments on commit 1d70493

Please sign in to comment.