- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
hasOne Relationship Method - API Reference
This method defines a relationship between two data models, where the owner of the relationship has one record of the related data model.
For example: A user "hasOne" email.
Use the belongsTo method to define the inverse of this relationship in the other data model.
Example#
Type Parameters#
Loading...
Parameters#
Loading...
Was this page helpful?